XdmType.Attribute Method (XmlQualifiedName, XmlQualifiedName)XdmType.Attribute Method (XmlQualifiedName, XmlQualifiedName)XdmType::Attribute Method (XmlQualifiedName^, XmlQualifiedName^)
- XmlPrime 2.1
- Other Versions ▼
Creates a reference to the attribute type with the specified name and type annotation name.
Syntax
Public Shared Function Attribute( _ attributeName As System.Xml.XmlQualifiedName, _ typeAnnotationName As System.Xml.XmlQualifiedName _ ) As XdmType
public static XdmType Attribute( System.Xml.XmlQualifiedName attributeName, System.Xml.XmlQualifiedName typeAnnotationName )
public: static XdmType^ Attribute( System.Xml::XmlQualifiedName^ attributeName, System.Xml::XmlQualifiedName^ typeAnnotationName )
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.- typeAnnotationName
Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^
The name of the type annotation.
Return Value
Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^
An XdmTypeXdmTypeXdmType instance representing the attribute type with the specified name and type.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
typeAnnotationName is null
a null reference (Nothing in Visual Basic)
nullptr .
|
Remarks
This corresponds to the XPath 2.0 typeattribute( , )
,
or attribute(*, )
if attributeName is null
a null reference (Nothing
in Visual Basic)
nullptr