IXPathNavigable.CreateNavigator Method

Definition

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.

Applies to

See also