ProxyDataContractResolver.ResolveName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
During deserialization, maps any xsi:type information to the actual type of the persistence-ignorant object.
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
Parameters
- typeName
- String
The xsi:type information to map.
- typeNamespace
- String
The namespace of the xsi:type.
- declaredType
- Type
The declared type.
- knownTypeResolver
- DataContractResolver
An instance of ProxyDataContractResolver.
Returns
Returns the type that the xsi:type is mapped to. Returns null if no known type was found that matches the xsi:type.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework