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

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

Syntax

Public Shared Function Attribute( _
    attributeLocalName As String, _
    attributeNamespace As String _
) As XdmType
public static XdmType Attribute(
    string attributeLocalName,
    string attributeNamespace
)
public:
static XdmType^ Attribute(
    String^ attributeLocalName, 
    String^ attributeNamespace
)
 

Parameters

attributeLocalName

Type: System.StringSystem.StringSystem::String^

The local name of the attribute.

attributeNamespace

Type: System.StringSystem.StringSystem::String^

The namespace of the attribute.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

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

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException attributeLocalName or attributeNamespace is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionattributeLocalName is not a valid xs:NCName value.

Remarks

This corresponds to the XPath 2.0 type attribute(name), where name is has local name and namespace specified by attributeLocalName and attributeNamespace respectively.