XPathNavigator.MoveToFirst Method ()
.NET Framework (current version)
![]() |
---|
The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience. |
Moves the XPathNavigator to the first sibling node of the current node.
Assembly: System.Xml (in System.Xml.dll)
Return Value
Type: System.BooleanReturns true if the XPathNavigator is successful moving to the first sibling node of the current node; false if there is no first sibling, or if the XPathNavigator is currently positioned on an attribute node. If the XPathNavigator is already positioned on the first sibling, XPathNavigator will return true and will not move its position.
If MoveToFirst returns false because there is no first sibling, or if XPathNavigator is currently positioned on an attribute, the position of the XPathNavigator is unchanged.
.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Available since 1.1
Silverlight
Available since 4.0
Show: