XdmType.Element Method (string, string, string, string, bool)XdmType.Element Method (String, String, String, String, Boolean)XdmType::Element Method (String^, String^, String^, String^, bool)
- XmlPrime 2.1
- Other Versions ▼
Creates a reference to the element type with the specified name and type annotation.
Syntax
Parameters
- localName
Type: System.StringSystem.StringSystem::String^
The local name of the element.
- namespaceUri
Type: System.StringSystem.StringSystem::String^
The namespace of the element.
- typeAnnotationLocalName
Type: System.StringSystem.StringSystem::String^
The local name of the type annotation of the element type.
- typeAnnotationNamespace
Type: System.StringSystem.StringSystem::String^
The namespace of 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 |
localName, namespaceUri, typeAnnotationLocalName or
typeAnnotationNamespace is null
a null reference (Nothing in Visual Basic)
nullptr .
|
Remarks
This corresponds to the XPath 2.0 typeelement(name, typeAnnotationName)
, or
element(name, typeAnnotationName?)
if nillable is true
True
true
, where
name
has local name and namespace specified by localName and
namespaceUri, and typeAnnotationName
has local name and namespace specified by
typeAnnotationLocalName and typeAnnotationNamespace respectively.