get_Value()

XmlReader::get_Value() method

When overridden in a derived class, gets the text value of the current node.

virtual String System::Xml::XmlReader::get_Value()=0

Return Value

The value returned depends on the XmlReader::get_NodeType value of the node.

Remarks

The following table lists node types that have a value to return. All other node types return String::Empty.

Node typeValue
[Attribute](../../../system/attribute/)The value of the attribute.
CDATAThe content of the CDATA section.
CommentThe content of the comment.
DocumentTypeThe internal subset.
ProcessingInstructionThe entire content, excluding the target.
SignificantWhitespaceThe white space between markup in a mixed content model.
[Text](../../../system.text/)The content of the text node.
WhitespaceThe white space between markup.
XmlDeclarationThe content of the declaration.

See Also