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

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

Syntax

Public Shared Function SchemaElement( _
    localName As String, _
    namespaceUri As String _
) As XdmType
public static XdmType SchemaElement(
    string localName,
    string namespaceUri
)
public:
static XdmType^ SchemaElement(
    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 schema 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 2.0 type schema-element(name), where name has local name and namespace localName and namespaceUri respectively.