XmlDocument.CreateNavigator XmlDocument.CreateNavigator XmlDocument.CreateNavigator XmlDocument.CreateNavigator Method

定義

建立巡覽這份文件的新 XPathNavigator 物件。Creates a new XPathNavigator object for navigating this document.

多載

CreateNavigator() CreateNavigator() CreateNavigator() CreateNavigator()

建立巡覽這份文件的新 XPathNavigator 物件。Creates a new XPathNavigator object for navigating this document.

CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode)

建立 XPathNavigator 物件,用於巡覽位於指定之 XmlNode 上的這個文件。Creates an XPathNavigator object for navigating this document positioned on the XmlNode specified.

CreateNavigator() CreateNavigator() CreateNavigator() 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

傳回

範例

XmlNode.CreateNavigator需使用此方法的範例, 請參閱。See XmlNode.CreateNavigator for an example using this method.

備註

這個方法是檔物件模型 (DOM) 的 Microsoft 擴充功能。This method is a Microsoft extension to the Document Object Model (DOM).

CreateNavigator(XmlNode) CreateNavigator(XmlNode) CreateNavigator(XmlNode) 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 XmlNode XmlNode XmlNode

您希望巡覽器一開始定位所在的 XmlNodeThe XmlNode you want the navigator initially positioned on.

傳回

範例

XmlNode.CreateNavigator需使用此方法的範例, 請參閱。See XmlNode.CreateNavigator for an example using this method.

備註

這個方法是檔物件模型 (DOM) 的 Microsoft 擴充功能。This method is a Microsoft extension to the Document Object Model (DOM).

適用於