Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Dynamics CRM 2015
Maps any type to a new xsi:type representation.
Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public override bool TryResolveType(
Type type,
Type declaredType,
DataContractResolver knownTypeResolver,
out XmlDictionaryString typeName,
out XmlDictionaryString typeNamespace
)
public:
virtual bool TryResolveType(
Type^ type,
Type^ declaredType,
DataContractResolver^ knownTypeResolver,
[OutAttribute] XmlDictionaryString^% typeName,
[OutAttribute] XmlDictionaryString^% typeNamespace
) override
override TryResolveType :
type:Type *
declaredType:Type *
knownTypeResolver:DataContractResolver *
typeName:XmlDictionaryString byref *
typeNamespace:XmlDictionaryString byref -> bool
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
Parameters
type
Type: System.TypeType. The type 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.
typeName
Type: System.Xml.XmlDictionaryStringSystem.Xml.XmlDictionaryString. The xsi:type name.
typeNamespace
Type: System.Xml.XmlDictionaryStringSystem.Xml.XmlDictionaryString. The xsi:type namespace.
Return Value
Type: System.Boolean
Type: Boolean
true if mapping succeeded; otherwise, false.
Remarks
For information on this method, refer to the DataContractResolver class.
See Also
KnownTypesResolver Class
Microsoft.Xrm.Sdk Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright