XPathNavigator.MoveToFirstChild Method


When overridden in a derived class, moves the XPathNavigator to the first child node of the current node.

 abstract bool MoveToFirstChild();
public abstract bool MoveToFirstChild ();
abstract member MoveToFirstChild : unit -> bool
Public MustOverride Function MoveToFirstChild () As Boolean


true if the XPathNavigator is successful moving to the first child node of the current node; otherwise, false. If false, the position of the XPathNavigator is unchanged.


For an example of the MoveToFirstChild method, see the Clone method.


Root and Element are the only two XPathNodeType values that can have children. This property always returns false for all other XPathNodeType node types.

Applies to

See also