IXPathNavigable.CreateNavigator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a new XPathNavigator object.
public:
System::Xml::XPath::XPathNavigator ^ CreateNavigator();
public System.Xml.XPath.XPathNavigator? CreateNavigator ();
public System.Xml.XPath.XPathNavigator CreateNavigator ();
abstract member CreateNavigator : unit -> System.Xml.XPath.XPathNavigator
Public Function CreateNavigator () As XPathNavigator
Returns
An XPathNavigator object.
Examples
For examples of the CreateNavigator method, see the XmlNode, XPathDocument, or XmlDocument classes.
Remarks
If the CreateNavigator method is called from an XmlNode object, the XPathNavigator object is initially positioned on the node from which the method was called. If the CreateNavigator method is called from an XPathDocument object or an XmlDocument object, the XPathNavigator object is positioned on the root of the document.