次の方法で共有


XPathNavigator.MoveToFirstChild メソッド

現在のノードの最初の子へ移動します。

Public MustOverride Function MoveToFirstChild() As Boolean
[C#]
public abstract bool MoveToFirstChild();
[C++]
public: virtual bool MoveToFirstChild() = 0;
[JScript]
public abstract function MoveToFirstChild() : Boolean;

戻り値

最初の子ノードがある場合は true 。それ以外の場合は false

解説

子を持つことができる XPath ノード型は、Root と Element だけです。このプロパティは、他のすべてのノード型に対し必ず false を返します。

必要条件

プラットフォーム: 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 名前空間 | XPathNodeType | MoveToNext | MoveToParent | HasChildren