XdmType.Element Method (XmlQualifiedName, XmlQualifiedName, bool)XdmType.Element Method (XmlQualifiedName, XmlQualifiedName, Boolean)XdmType::Element Method (XmlQualifiedName^, XmlQualifiedName^, bool)
- XmlPrime 2.0
- Other Versions ▼
Creates a reference to the element type with the specified name and type annotation.
Syntax
Public Shared Function Element( _ name As System.Xml.XmlQualifiedName, _ typeAnnotationName As System.Xml.XmlQualifiedName, _ nillable As Boolean _ ) As XdmType
public static XdmType Element( System.Xml.XmlQualifiedName name, System.Xml.XmlQualifiedName typeAnnotationName, bool nillable )
public: static XdmType^ Element( System.Xml::XmlQualifiedName^ name, System.Xml::XmlQualifiedName^ typeAnnotationName, bool nillable )
Parameters
- name
Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^
The name of the element, or
null
a null reference (Nothing
in Visual Basic)nullptr
for a type matching an element of any name.- typeAnnotationName
Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^
The name of the type annotation of this element type.
- nillable
Type: System.BooleanSystem.BooleanSystem::Boolean
A boolean value indicating whether the element is nillable.
Return Value
Type: XmlPrime.XdmTypeXmlPrime.XdmTypeXmlPrime::XdmType^
An XdmTypeXdmTypeXdmType instance representing the element type with the specified name and type annotation.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
typeAnnotationName is null
a null reference (Nothing in Visual Basic)
nullptr .
|
Remarks
This corresponds to the XPath 2.0 typeelement( , )
, or
element(*, )
if name is null
a null reference (Nothing
in Visual Basic)
nullptr
. Similarly
element( , ?)
, or
element(*, ?)
if nillable is
true
True
true
.