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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for