Gets or sets the value of the node.
[Visual Basic] Overridable Public Property Value As String [C#] public string Value {virtual get; virtual set;} [C++] public: __property virtual String* get_Value(); public: __property virtual void set_Value(String*); [JScript] public function get Value() : String; public function set Value(String);
The value returned depends on the NodeType of the node:
Type | Value |
---|---|
Attr | value of attribute |
CDATASection | content of the CDATA Section |
Comment | content of the comment |
Document | null |
DocumentFragment | null |
DocumentType | null |
Element | null |
Entity | null |
EntityReference | null |
Notation | null |
ProcessingInstruction | entire content excluding the target |
Text | content of the text node |
Exception Type | Condition |
---|---|
ReadOnlyException | Node is read-only. |
ArgumentOutOfRangeException | [To be supplied.] |