System::Xml::XmlReader::get_Value 方法

XmlReader::get_Value method

当在派生类中被重写时,获取当前节点的文本值。

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

ReturnValue

返回的值取决于节点的 XmlReader::get_NodeType 值。

备注

下表列出了具有可返回值的节点类型。所有其他节点类型返回 String::Empty
节点类型
Attribute属性的值。
CDATACDATA 区段的内容。
Comment注释的内容。
DocumentType内部子集。
ProcessingInstruction整个内容,目标除外。
SignificantWhitespace混合内容模型中标记之间的空白。
Text文本节点的内容。
Whitespace标记之间的空白。
XmlDeclaration声明的内容。

另见