XmlDocument.CreateNavigator 方法

定义

创建一个用于导航此文档的新 XPathNavigator 对象。Creates a new XPathNavigator object for navigating this document.

重载

CreateNavigator()

创建一个用于导航此文档的新 XPathNavigator 对象。Creates a new XPathNavigator object for navigating this document.

CreateNavigator(XmlNode)

创建 XPathNavigator 对象,以定位位于指定的 XmlNode 上的此文档。Creates an XPathNavigator object for navigating this document positioned on the XmlNode specified.

CreateNavigator()

创建一个用于导航此文档的新 XPathNavigator 对象。Creates a new XPathNavigator object for navigating this document.

public:
 override System::Xml::XPath::XPathNavigator ^ CreateNavigator();
public override System.Xml.XPath.XPathNavigator CreateNavigator ();
override this.CreateNavigator : unit -> System.Xml.XPath.XPathNavigator
Public Overrides Function CreateNavigator () As XPathNavigator

返回

一个 XPathNavigator 对象。An XPathNavigator object.

示例

有关使用此方法的示例,请参阅 XmlNode.CreateNavigatorSee XmlNode.CreateNavigator for an example using this method.

注解

此方法是文档对象模型(DOM)的 Microsoft 扩展。This method is a Microsoft extension to the Document Object Model (DOM).

CreateNavigator(XmlNode)

创建 XPathNavigator 对象,以定位位于指定的 XmlNode 上的此文档。Creates an XPathNavigator object for navigating this document positioned on the XmlNode specified.

protected public:
 virtual System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlNode ^ node);
protected internal virtual System.Xml.XPath.XPathNavigator CreateNavigator (System.Xml.XmlNode node);
override this.CreateNavigator : System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
Protected Friend Overridable Function CreateNavigator (node As XmlNode) As XPathNavigator

参数

node
XmlNode

希望导航器最初定位在的 XmlNodeThe XmlNode you want the navigator initially positioned on.

返回

一个 XPathNavigator 对象。An XPathNavigator object.

示例

有关使用此方法的示例,请参阅 XmlNode.CreateNavigatorSee XmlNode.CreateNavigator for an example using this method.

注解

此方法是文档对象模型(DOM)的 Microsoft 扩展。This method is a Microsoft extension to the Document Object Model (DOM).

适用于