XdmType.Element Method (string, string)XdmType.Element Method (String, String)XdmType::Element Method (String^, String^)

Returns an XdmTypeXdmTypeXdmType instance corresponding to the element type with the specified name.

Syntax

Public Shared Function Element( _
    elementLocalName As String, _
    elementNamespace As String _
) As XdmType
public static XdmType Element(
    string elementLocalName,
    string elementNamespace
)
public:
static XdmType^ Element(
    String^ elementLocalName, 
    String^ elementNamespace
)
 

Parameters

elementLocalName

Type: System.StringSystem.StringSystem::String^

The local name of the element.

elementNamespace

Type: System.StringSystem.StringSystem::String^

The namespace of the element.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

An XdmTypeXdmTypeXdmType instance representing the element type with the specified name.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException elementLocalName or elementNamespace is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionelementLocalName is not a valid xs:NCName value.

Remarks

This corresponds to the XPath type element(name), where name has local name and namespace specified by elementLocalName and elementNamespace respectively.