Επεξεργασία

Κοινή χρήση μέσω


ProxyDataContractResolver.ResolveName Method

Definition

During deserialization, maps any xsi:type information to the actual type of the persistence-ignorant object.

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

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

The type that the xsi:type is mapped to, or null if no known type was found that matches the xsi:type.

Remarks

For more information, see: Working with POCO Entities.

Applies to