KnownTypesResolver.ResolveName Method (String, String, Type, DataContractResolver)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Enables users to map a xsi:type name to any type.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public override Type ResolveName(
string typeName,
string typeNamespace,
Type declaredType,
DataContractResolver knownTypeResolver
)
Public Overrides Function ResolveName (
typeName As String,
typeNamespace As String,
declaredType As Type,
knownTypeResolver As DataContractResolver
) As Type
Parameters
typeName
Type: System.StringString. The xsi:type name to map.
typeNamespace
Type: System.StringString. The xsi:type namespace to map.
declaredType
Type: System.TypeType. The type declared in the data contract.
knownTypeResolver
Type: System.Runtime.Serialization.DataContractResolverSystem.Runtime.Serialization.DataContractResolver. The known type resolver.
Return Value
Type: System.Type
Type: Type
The type the xsi:type name and namespace is mapped to.
Remarks
For information on this method, refer to the DataContractResolver class.
See Also
KnownTypesResolver Class
Microsoft.Xrm.Sdk Namespace
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright