XmlDocumentXPathExtensions.SelectNodes 方法

定義

多載

SelectNodes(XmlNode, String)

選取符合指定 XPath 運算式的節點清單。

SelectNodes(XmlNode, String, XmlNamespaceManager)

選取符合指定 XPath 運算式的節點清單。 會使用提供的命名空間管理員解析 XPath 運算式中找到的任何前置詞。

SelectNodes(XmlNode, String)

選取符合指定 XPath 運算式的節點清單。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XmlNodeList ^ SelectNodes(System::Xml::XmlNode ^ node, System::String ^ xpath);
public static System.Xml.XmlNodeList SelectNodes (this System.Xml.XmlNode node, string xpath);
static member SelectNodes : System.Xml.XmlNode * string -> System.Xml.XmlNodeList
<Extension()>
Public Function SelectNodes (node As XmlNode, xpath As String) As XmlNodeList

參數

node
XmlNode

導覽器一開始定位所在的節點。

xpath
String

要比對的 XPath 運算式。

傳回

符合指定 XPath 運算式的節點集合

適用於

SelectNodes(XmlNode, String, XmlNamespaceManager)

選取符合指定 XPath 運算式的節點清單。 會使用提供的命名空間管理員解析 XPath 運算式中找到的任何前置詞。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Xml::XmlNodeList ^ SelectNodes(System::Xml::XmlNode ^ node, System::String ^ xpath, System::Xml::XmlNamespaceManager ^ nsmgr);
public static System.Xml.XmlNodeList SelectNodes (this System.Xml.XmlNode node, string xpath, System.Xml.XmlNamespaceManager nsmgr);
static member SelectNodes : System.Xml.XmlNode * string * System.Xml.XmlNamespaceManager -> System.Xml.XmlNodeList
<Extension()>
Public Function SelectNodes (node As XmlNode, xpath As String, nsmgr As XmlNamespaceManager) As XmlNodeList

參數

node
XmlNode

導覽器一開始定位所在的節點。

xpath
String

要比對的 XPath 運算式。

nsmgr
XmlNamespaceManager

用來解析 XPath 運算式前置詞命名空間的命名空間管理員。

傳回

符合指定 XPath 運算式的節點集合

另請參閱

適用於