XPathNavigator::MoveToRoot Method ()
.NET Framework (current version)
Moves the XPathNavigator to the root node that the current node belongs to.
Assembly: System.Xml (in System.Xml.dll)
All nodes belong to one and only one document. Therefore, this method is always successful.
For an example of the MoveToRoot method, see the MoveToFollowing method.
.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Available since 1.1
Silverlight
Available since 4.0
Show: