XdmType.Parse Method (string, XPathVersion)XdmType.Parse Method (String, XPathVersion)XdmType::Parse Method (String^, XPathVersion)

Returns an XdmTypeXdmTypeXdmType which represents the specified type name according to the specified XPathVersionXPathVersionXPathVersion.

Syntax

Public Shared Function Parse( _
    typeName As String, _
    version As XPathVersion _
) As XdmType
public static XdmType Parse(
    string typeName,
    XPathVersion version
)
public:
static XdmType^ Parse(
    String^ typeName, 
    XPathVersion version
)
 

Parameters

typeName

Type: System.StringSystem.StringSystem::String^

The type name.

version

Type: XmlPrime.XPathVersionXmlPrime.XPathVersionXmlPrime::XPathVersion

The XPath specification version.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

An XdmTypeXdmTypeXdmType instance representing the specified type.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptiontypeName is null a null reference (Nothing in Visual Basic) nullptr.
XdmExceptionXdmExceptionXdmExceptionAn error occurred whilst parsing the type name.

Remarks

The in-scope namespaces available for use in the type name are those available by default in XQuery.