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

Creates a reference to the attribute type with the specified name and type annotation name.

Syntax

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

Parameters

attributeLocalName

Type: System.StringSystem.StringSystem::String^

The local name of the attribute.

attributeNamespace

Type: System.StringSystem.StringSystem::String^

The namespace of the attribute.

typeAnnotationLocalName

Type: System.StringSystem.StringSystem::String^

The local name of the type annotation.

typeAnnotationNamespace

Type: System.StringSystem.StringSystem::String^

The namespace 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

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException attributeLocalName, attributeNamespace, typeAnnotationLocalName or typeAnnotationNamespace is null a null reference (Nothing in Visual Basic) nullptr.

Remarks

This is equivalent to the XPath 2.0 type attribute(attributeName, typeAnnotationName) where attributeName has local name and namespace specified by attributeLocalName and attributeNamespace, and typeAnnotationName has local name and namespace specified by typeAnnotationLocalName and typeAnnotationNamespace respectively.