ProxyDataContractResolver.TryResolveType Method

Definition

During serialization, maps actual types to xsi:type information.

public:
 override bool TryResolveType(Type ^ dataContractType, Type ^ declaredType, System::Runtime::Serialization::DataContractResolver ^ knownTypeResolver, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % typeName, [Runtime::InteropServices::Out] System::Xml::XmlDictionaryString ^ % typeNamespace);
public override bool TryResolveType (Type dataContractType, Type declaredType, System.Runtime.Serialization.DataContractResolver knownTypeResolver, out System.Xml.XmlDictionaryString typeName, out System.Xml.XmlDictionaryString typeNamespace);
override this.TryResolveType : Type * Type * System.Runtime.Serialization.DataContractResolver * XmlDictionaryString * XmlDictionaryString -> bool
Public Overrides Function TryResolveType (dataContractType As Type, declaredType As Type, knownTypeResolver As DataContractResolver, ByRef typeName As XmlDictionaryString, ByRef typeNamespace As XmlDictionaryString) As Boolean

Parameters

dataContractType
Type

The actual type of the persistence-ignorant object.

declaredType
Type

The declared type.

knownTypeResolver
DataContractResolver

An instance of ProxyDataContractResolver.

typeName
XmlDictionaryString

When this method returns, contains a list of xsi:type declarations.

typeNamespace
XmlDictionaryString

When this method returns, contains a list of namespaces used.

Returns

true if the type was resolved; otherwise, false.

Remarks

For more information, see: Working with POCO Entities.

Applies to