現在のノードのテキスト値を取得します。このメソッドは、 Value プロパティを返すことと同等です。
Overrides Public Function ToString() As String
[C#]
public override string ToString();
[C++]
public: String* ToString();
[JScript]
public override function ToString() : String;
戻り値
返される内容は、ノードの NodeType によって異なります。
ノード型 | 値 |
---|---|
属性 | 属性の値。 |
要素 | 要素の InnerText 。 |
Comment | コメントの内容。 |
ProcessingInstruction | ターゲットを含まない全体の内容。 |
Text | テキスト ノードの内容。 |
Whitespace | マークアップ間の空白。 |
SignificantWhitespace | 混合コンテンツ モデルのマークアップ間にある空白、または xml:space= 'preserve' スコープ内の空白。 |
Root | ルート ノードの InnerText 。 |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
XPathNavigator クラス | XPathNavigator メンバ | System.Xml.XPath 名前空間