System.Xml.XPath.XPathNavigator.MoveToRoot Method

Moves the System.Xml.XPath.XPathNavigator to the root node that the current node belongs to.

Syntax

public virtual void MoveToRoot ()

Remarks

All nodes belong to one and only one document. Therefore, this method is always successful.

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