KnownTypesResolver.TryResolveType Method

Applies To: Microsoft Dynamics CRM 2013, Microsoft 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)

Syntax

'Declaration
Public Overrides Function TryResolveType ( _
    type As Type, _
    declaredType As Type, _
    knownTypeResolver As DataContractResolver, _
    <OutAttribute> ByRef typeName As XmlDictionaryString, _
    <OutAttribute> ByRef typeNamespace As XmlDictionaryString _
) As Boolean
public override bool TryResolveType (
    Type type,
    Type declaredType,
    DataContractResolver knownTypeResolver,
    out XmlDictionaryString typeName,
    out XmlDictionaryString typeNamespace
)

Parameters

  • type
    Type. The type to map.
  • declaredType
    Type. The type declared in the data contract.

Return Value

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

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

KnownTypesResolver Class
KnownTypesResolver Members
Microsoft.Xrm.Sdk Namespace

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.