現在のノードの親へ移動します。
Public MustOverride Function MoveToParent() As Boolean
[C#]
public abstract bool MoveToParent();
[C++]
public: virtual bool MoveToParent() = 0;
[JScript]
public abstract function MoveToParent() : Boolean;
戻り値
親ノードがある場合は true 。それ以外の場合は false 。
解説
存在する場合は、 XPathNodeType および保持される親ノードの型を次の表に示します。
| XPathNodeType | 親ノード |
|---|---|
| Root | ルート ノードは親を持ちません。 |
| 要素 | Element ノードまたは Root ノード。 |
| 属性 | Element ノード。 |
| Text | Element ノード。 |
| 名前空間 | Element ノード。 |
| ProcessingInstruction | Element ノードまたは Root ノード。 |
| Comment | Element ノードまたは Root ノード。 |
| Whitespace | Element ノードまたは Root ノード。 |
| SignificantWhitespace | Element ノードまたは Root ノード。 |
必要条件
プラットフォーム: 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 名前空間