JAMS Developer Guide
TryResolveType Method (JAMSDataContractResolver)


MVPSI.JAMS Namespace > JAMSDataContractResolver Class : TryResolveType Method
Takes a Type and returns XmlDictionaryStrings for the type and namespace.
Syntax
'Declaration
 
Public Overrides Function TryResolveType( _
   ByVal dataContractType As System.Type, _
   ByVal declaredType As System.Type, _
   ByVal knownTypeResolver As System.Runtime.Serialization.DataContractResolver, _
   ByRef typeName As System.Xml.XmlDictionaryString, _
   ByRef typeNamespace As System.Xml.XmlDictionaryString _
) As System.Boolean
'Usage
 
Dim instance As JAMSDataContractResolver
Dim dataContractType As System.Type
Dim declaredType As System.Type
Dim knownTypeResolver As System.Runtime.Serialization.DataContractResolver
Dim typeName As System.Xml.XmlDictionaryString
Dim typeNamespace As System.Xml.XmlDictionaryString
Dim value As System.Boolean
 
value = instance.TryResolveType(dataContractType, declaredType, knownTypeResolver, typeName, typeNamespace)
public override System.bool TryResolveType( 
   System.Type dataContractType,
   System.Type declaredType,
   System.Runtime.Serialization.DataContractResolver knownTypeResolver,
   out System.Xml.XmlDictionaryString typeName,
   out System.Xml.XmlDictionaryString typeNamespace
)

Parameters

dataContractType
declaredType
knownTypeResolver
typeName
typeNamespace
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

JAMSDataContractResolver Class
JAMSDataContractResolver Members