XdmType.Element Method (XmlQualifiedName, XmlSchemaType, bool)XdmType.Element Method (XmlQualifiedName, XmlSchemaType, Boolean)XdmType::Element Method (XmlQualifiedName^, XmlSchemaType^, bool)

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

Syntax

Public Shared Function Element( _
    elementName As System.Xml.XmlQualifiedName, _
    typeAnnotation As System.Xml.Schema.XmlSchemaType, _
    nillable As Boolean _
) As XdmType
public static XdmType Element(
    System.Xml.XmlQualifiedName elementName,
    System.Xml.Schema.XmlSchemaType typeAnnotation,
    bool nillable
)
public:
static XdmType^ Element(
    System.Xml::XmlQualifiedName^ elementName, 
    System.Xml.Schema::XmlSchemaType^ typeAnnotation, 
    bool nillable
)
 

Parameters

elementName

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.

typeAnnotation

Type: System.Xml.Schema.XmlSchemaTypeSystem.Xml.Schema.XmlSchemaTypeSystem.Xml.Schema::XmlSchemaType^

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

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

Remarks

This corresponds to the XPath 2.0 type element( , ), or element(*, ) if elementName is null a null reference (Nothing in Visual Basic) nullptr. Similarly element( , ?), or element(*, ?) if nillable is trueTruetrue.