XdmType.Attribute Method (string, string, XmlSchemaSimpleType)XdmType.Attribute Method (String, String, XmlSchemaSimpleType)XdmType::Attribute Method (String^, String^, XmlSchemaSimpleType^)
Returns an XdmTypeXdmTypeXdmType instance corresponding to the attribute type with the specified name and type annotation name.
Syntax
Public Shared Function Attribute( _ attributeLocalName As String, _ attributeNamespace As String, _ typeAnnotation As System.Xml.Schema.XmlSchemaSimpleType _ ) As XdmType
public static XdmType Attribute( string attributeLocalName, string attributeNamespace, System.Xml.Schema.XmlSchemaSimpleType typeAnnotation )
public: static XdmType^ Attribute( String^ attributeLocalName, String^ attributeNamespace, System.Xml.Schema::XmlSchemaSimpleType^ typeAnnotation )
Parameters
- attributeLocalName
Type: System.StringSystem.StringSystem::String^
The local name of the attribute.
- attributeNamespace
Type: System.StringSystem.StringSystem::String^
The namespace of the attribute.
- typeAnnotation
Type: System.Xml.Schema.XmlSchemaSimpleTypeSystem.Xml.Schema.XmlSchemaSimpleTypeSystem.Xml.Schema::XmlSchemaSimpleType^
The ntype 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 |
attributeLocalName, attributeNamespace or
typeAnnotation is null
a null reference (Nothing in Visual Basic)
nullptr .
|
ArgumentExceptionArgumentExceptionArgumentException | attributeLocalName is not a valid xs:NCName value. |
Remarks
This is equivalent to the XPath 2.0 typeattribute(attributeName, typeAnnotation)
where
attributeName
has local name and namespace specified by attributeLocalName and
attributeNamespace.