XdmType.Element Method (string, string, XmlSchemaType, bool)XdmType.Element Method (String, String, XmlSchemaType, Boolean)XdmType::Element Method (String^, String^, XmlSchemaType^, bool)
Returns an XdmTypeXdmTypeXdmType instance corresponding to the element type with the specified name and type annotation.
Syntax
Public Shared Function Element( _ elementLocalName As String, _ elementNamespace As String, _ typeAnnotation As System.Xml.Schema.XmlSchemaType, _ nillable As Boolean _ ) As XdmType
public static XdmType Element( string elementLocalName, string elementNamespace, System.Xml.Schema.XmlSchemaType typeAnnotation, bool nillable )
public: static XdmType^ Element( String^ elementLocalName, String^ elementNamespace, System.Xml.Schema::XmlSchemaType^ typeAnnotation, bool nillable )
Parameters
- elementLocalName
Type: System.StringSystem.StringSystem::String^
The local name of the element.
- elementNamespace
Type: System.StringSystem.StringSystem::String^
The namespace of the element.
- typeAnnotation
Type: System.Xml.Schema.XmlSchemaTypeSystem.Xml.Schema.XmlSchemaTypeSystem.Xml.Schema::XmlSchemaType^
The type annotation of the 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 |
elementLocalName, elementNamespace or typeAnnotation is
null
a null reference (Nothing in Visual Basic)
nullptr .
|
ArgumentExceptionArgumentExceptionArgumentException | elementLocalName is not a valid xs:NCName value. |
Remarks
This corresponds to the XPath 2.0 typeelement(name, typeAnnotation)
, or
element(name, typeAnnotation?)
if nillable is true
True
true
, where
name
has local name and namespace specified by elementLocalName and
elementNamespace.