XmlDocumentXPathExtensions.CreateNavigator 方法

定义

重载

名称 说明
CreateNavigator(XmlDocument)

创建用于导航指定文档的新 XPath 导航器对象。

CreateNavigator(XmlNode)

创建用于导航指定节点的 XPath 导航器。

CreateNavigator(XmlDocument, XmlNode)

创建一个 XPath 导航器对象,用于导航位于指定节点上的指定文档。

CreateNavigator(XmlDocument)

Source:
XmlDocumentXPathExtensions.cs

创建用于导航指定文档的新 XPath 导航器对象。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlDocument ^ document);
public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.XmlDocument document);
static member CreateNavigator : System.Xml.XmlDocument -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (document As XmlDocument) As XPathNavigator

参数

document
XmlDocument

从中创建 XPath 导航器的文档。

返回

XPath 导航器对象。

适用于

CreateNavigator(XmlNode)

Source:
XmlDocumentXPathExtensions.cs

创建用于导航指定节点的 XPath 导航器。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlNode ^ node);
public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.XmlNode node);
static member CreateNavigator : System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (node As XmlNode) As XPathNavigator

参数

node
XmlNode

导航器最初定位的节点。

返回

用于导航节点的 XPath 导航器对象。 XPath 导航器位于调用该方法的节点上,而不是位于文档的根目录中。

适用于

CreateNavigator(XmlDocument, XmlNode)

Source:
XmlDocumentXPathExtensions.cs

创建一个 XPath 导航器对象,用于导航位于指定节点上的指定文档。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XPath::XPathNavigator ^ CreateNavigator(System::Xml::XmlDocument ^ document, System::Xml::XmlNode ^ node);
public static System.Xml.XPath.XPathNavigator CreateNavigator(this System.Xml.XmlDocument document, System.Xml.XmlNode node);
static member CreateNavigator : System.Xml.XmlDocument * System.Xml.XmlNode -> System.Xml.XPath.XPathNavigator
<Extension()>
Public Function CreateNavigator (document As XmlDocument, node As XmlNode) As XPathNavigator

参数

document
XmlDocument

从中创建 XPath 导航器的文档。

node
XmlNode

导航器最初定位的节点。

返回

XPath 导航器对象。

适用于