System.Xml.XPath.XPathNavigator.MoveToFirstChild Method

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

Syntax

public abstract bool MoveToFirstChild ()

Returns

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

Remarks

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

Requirements

Namespace: System.Xml.XPath
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0