XPathNavigator.MoveToFirstChild メソッド
派生クラスでオーバーライドされると、XPathNavigator を現在のノードの最初の子ノードに移動します。
名前空間: System.Xml.XPath
アセンブリ: System.Xml (system.xml.dll 内)
構文
Dim instance As XPathNavigator Dim returnValue As Boolean returnValue = instance.MoveToFirstChild
戻り値
XPathNavigator が現在のノードの最初の子ノードに正常に移動された場合は true を返します。それ以外の場合は false を返します。false の場合、XPathNavigator の位置は変更されません。

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

MoveToFirstChild メソッドの例については、Clone メソッドのトピックを参照してください。

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- XPathNavigator.MoveToFirstChild メソッドのページへのリンク