KnownTypesResolverTryResolveType Method

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Maps any type to a new xsi:type representation.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

No code example is currently available or this language may not be supported.

Parameters

type
Type:

Type. The type to map.

declaredType
Type:

Type. The type declared in the data contract.

knownTypeResolver
Type:

System.Runtime.Serialization.DataContractResolver. The known type resolver.

typeName
Type:

System.Xml.XmlDictionaryString. The xsi:type name.

typeNamespace
Type:

System.Xml.XmlDictionaryString. The xsi:type namespace.

Return Value

Type:

Type: Boolean
true if mapping succeeded; otherwise, false.

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions

ADD
Show: