XPathNavigator.MoveToRoot Method ()

 
System_CAPS_noteNote

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 root node that the current node belongs to.

Namespace:   System.Xml.XPath
Assembly:  System.Xml (in System.Xml.dll)

public virtual void MoveToRoot()

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
Return to top
Show: