Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ProxyDataContractResolver::TryResolveType Method (Type^, Type^, DataContractResolver^, XmlDictionaryString^%, XmlDictionaryString^%)

.NET Framework (current version)
 

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

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
virtual bool TryResolveType(
	Type^ dataContractType,
	Type^ declaredType,
	DataContractResolver^ knownTypeResolver,
	[OutAttribute] XmlDictionaryString^% typeName,
	[OutAttribute] XmlDictionaryString^% typeNamespace
) override

Parameters

dataContractType
Type: System::Type^

The actual type of the persistence-ignorant object.

declaredType
Type: System::Type^

The declared type.

knownTypeResolver
Type: System.Runtime.Serialization::DataContractResolver^

An instance of ProxyDataContractResolver.

typeName
Type: System.Xml::XmlDictionaryString^%

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

typeNamespace
Type: System.Xml::XmlDictionaryString^%

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

Return Value

Type: System::Boolean

true if the type was resolved; otherwise, false.

For more information, see: Working with POCO Entities.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft