XPathNavigator.MoveToParent メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > XPathNavigator.MoveToParent メソッドの意味・解説 

XPathNavigator.MoveToParent メソッド

派生クラスでオーバーライドされると、XPathNavigator を現在のノードの親ノードに移動します。

名前空間: System.Xml.XPath
アセンブリ: System.Xml (system.xml.dll 内)
構文構文

Public MustOverride Function
 MoveToParent As Boolean
Dim instance As XPathNavigator
Dim returnValue As Boolean

returnValue = instance.MoveToParent
public abstract bool MoveToParent ()
public abstract boolean MoveToParent ()

戻り値
XPathNavigator が現在のノードの親ノードに正常に移動された場合は true を返します。それ以外の場合は false を返します。false の場合、XPathNavigator の位置は変更されません。

解説解説

MoveToParent メソッドの戻り値は、現在のノードの XPathNodeType および移動先となる親ノードの XPathNodeType によって異なります。

さまざまな XPathNodeType ノードとこれらの移動先として指定できる親ノードの表を次に示します。

XPathNodeType

親ノード

Root

Root ノードは親を持ちません。

Element

Element ノードまたは Root ノード。

Attribute

Element ノード。

Text

Element ノード。

Namespace

Element ノード。

ProcessingInstruction

Element ノードまたは Root ノード。

Comment

Element ノードまたは Root ノード。

Whitespace

Element ノードまたは Root ノード。

SignificantWhitespace

Element ノードまたは Root ノード。

使用例使用例
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
XPathNavigator クラス
XPathNavigator メンバ
System.Xml.XPath 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

XPathNavigator.MoveToParent メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



XPathNavigator.MoveToParent メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS