Share via


ProxyDataContractResolver.TryResolveType Method

Definition

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

public override bool TryResolveType (Type type, 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 *  *  -> bool

Parameters

type
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.

Applies to