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

Creates a reference to the element type with the specified name.

Syntax

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

Parameters

localName

Type: System.StringSystem.StringSystem::String^

The local name of the element.

namespaceUri

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 localName or namespaceUri is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

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