Compartilhar via


KnownTypesResolver.ResolveName Method

Definition

Enables users to map a xsi:type name to any type.

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 name to map.

typeNamespace
String

The xsi:type namespace to map.

declaredType
Type

The type declared in the data contract.

knownTypeResolver
DataContractResolver

The known type resolver.

Returns

The type the xsi:type name and namespace is mapped to.

Remarks

For information on this method, refer to the DataContractResolver class.

Applies to