ProxyDataContractResolver.ResolveName Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Pendant la désérialisation, mappe toutes les xsi:type informations au type réel de l’objet ignorant de persistance .
public:
override Type ^ ResolveName(System::String ^ typeName, System::String ^ typeNamespace, Type ^ declaredType, System::Runtime::Serialization::DataContractResolver ^ knownTypeResolver);
public override Type ResolveName(string typeName, string typeNamespace, Type declaredType, System.Runtime.Serialization.DataContractResolver knownTypeResolver);
override this.ResolveName : string * string * Type * System.Runtime.Serialization.DataContractResolver -> Type
Public Overrides Function ResolveName (typeName As String, typeNamespace As String, declaredType As Type, knownTypeResolver As DataContractResolver) As Type
Paramètres
- typeName
- String
Informations xsi:type à mapper.
- typeNamespace
- String
Espace de noms du xsi:type.
- declaredType
- Type
Type déclaré.
- knownTypeResolver
- DataContractResolver
Instance de ProxyDataContractResolver.
Retours
Type auquel la valeur xsi:type est mappée, ou null si aucun type connu n’a été trouvé qui correspond au xsi:type.
Remarques
Pour plus d’informations, consultez : Utilisation des entités POCO.