Share via


ProxyDataContractResolver.ResolveName Method

Definition

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