XdmType.Attribute Method (XmlQualifiedName, XmlSchemaSimpleType)XdmType.Attribute Method (XmlQualifiedName, XmlSchemaSimpleType)XdmType::Attribute Method (XmlQualifiedName^, XmlSchemaSimpleType^)

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

Syntax

Public Shared Function Attribute( _
    attributeName As System.Xml.XmlQualifiedName, _
    typeAnnotation As System.Xml.Schema.XmlSchemaSimpleType _
) As XdmType
public static XdmType Attribute(
    System.Xml.XmlQualifiedName attributeName,
    System.Xml.Schema.XmlSchemaSimpleType typeAnnotation
)
public:
static XdmType^ Attribute(
    System.Xml::XmlQualifiedName^ attributeName, 
    System.Xml.Schema::XmlSchemaSimpleType^ typeAnnotation
)
 

Parameters

attributeName

Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^

The name of attributes matching this type, or null a null reference (Nothing in Visual Basic) nullptr for a type matching all attribute names.

typeAnnotation

Type: System.Xml.Schema.XmlSchemaSimpleTypeSystem.Xml.Schema.XmlSchemaSimpleTypeSystem.Xml.Schema::XmlSchemaSimpleType^

The type annotation.

Return Value

Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^

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

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException typeAnnotation is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionattributeName is not a valid xs:QName value.

Remarks

This corresponds to the XPath 2.0 type attribute( , ), or attribute(*, ) if attributeName is null a null reference (Nothing in Visual Basic) nullptr