System::Xml::XmlTextReader::get_Value 方法

XmlTextReader::get_Value method

返回当前节点的文本值。

String System::Xml::XmlTextReader::get_Value() override

ReturnValue

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

备注

下表列出了具有可返回值的节点类型。所有其他节点类型返回 String::Empty
节点类型
Attribute属性的值。
CDATACDATA 区段的内容。
Comment注释的内容。
DocumentType内部子集。
ProcessingInstruction整个内容,目标除外。
SignificantWhitespacexml:space=‘preserve’ 范围内的空白字符。
Text文本节点的内容。
Whitespace标记之间的空白。
XmlDeclaration声明的内容。

另见