Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XPathNavigator::MoveToRoot Method ()

 

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:
© 2017 Microsoft