The identifier of this node.
[Visual Basic] Overridable Public Property ID As XmlIdent [C#] public XmlIdent ID {virtual get; virtual set;} [C++] public: __property virtual XmlIdent* get_ID(); public: __property virtual void set_ID(XmlIdent*); [JScript] public function get ID() : XmlIdent; public function set ID(XmlIdent);
Exception Type | Condition |
---|---|
InvalidOperationException | When setting this property on anything but an XmlElement or an XmlPI node. |
The value of this property depends on the actual XmlNode class as follows:
XmlNode class | Value |
---|---|
XmlDocument | An identifier with the name "#document" and an empty namespace URI. |
XmlElement | An identifier with the name and namespace URI of the element. |
XmlText | An identifier with the name "#text" and an empty namespace URI. |
XmlCData | An identifier with the name "#cdata" and an empty namespace URI. |
XmlComment | An identifier with the name "#comment" and an empty namespace URI. |
XmlPI | An identifier with a name that starts with '?' and an empty namespace URI. |
XmlHeader | An identifier with the name "?xml" and an empty namespace URI. |
XmlDocType | An identifier with the name "#doctype" and an empty namespace URI. |