XdmType.Parse Method (string, IXmlNamespaceResolver, XmlSchemaSet, XPathVersion)XdmType.Parse Method (String, IXmlNamespaceResolver, XmlSchemaSet, XPathVersion)XdmType::Parse Method (String^, IXmlNamespaceResolver^, XmlSchemaSet^, XPathVersion)
- XmlPrime 4.0
- Other Versions ▼
Returns an XdmTypeXdmTypeXdmType which represents the specified type name according to the specified XPathVersionXPathVersionXPathVersion.
Syntax
Public Shared Function Parse( _ typeName As String, _ namespaces As System.Xml.IXmlNamespaceResolver, _ schemaSet As System.Xml.Schema.XmlSchemaSet, _ version As XPathVersion _ ) As XdmType
public static XdmType Parse( string typeName, System.Xml.IXmlNamespaceResolver namespaces, System.Xml.Schema.XmlSchemaSet schemaSet, XPathVersion version )
public: static XdmType^ Parse( String^ typeName, System.Xml::IXmlNamespaceResolver^ namespaces, System.Xml.Schema::XmlSchemaSet^ schemaSet, XPathVersion version )
Parameters
- typeName
Type: System.StringSystem.StringSystem::String^
The type name.
- namespaces
Type: System.Xml.IXmlNamespaceResolverSystem.Xml.IXmlNamespaceResolverSystem.Xml::IXmlNamespaceResolver^
The in-scope namespaces to use to parse the type.
- schemaSet
Type: System.Xml.Schema.XmlSchemaSetSystem.Xml.Schema.XmlSchemaSetSystem.Xml.Schema::XmlSchemaSet^
The schema set to use to lookup schema types.
- 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
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | typeName, namespaces or schemaSet is null
a null reference (Nothing in Visual Basic)
nullptr . |
XdmExceptionXdmExceptionXdmException | An error occurred whilst parsing the type name. |