XmlDocumentXPathExtensions.SelectNodes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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 表達式相符的節點。