XmlDocument.SelectNodes(String) 方法

定義

將指定的模式比對作業套用至這個節點的內容,並將相符節點的清單當做 XmlNodeList傳回。

public:
 virtual XmlNodeList ^ SelectNodes(Platform::String ^ xpath) = SelectNodes;
XmlNodeList SelectNodes(winrt::hstring const& xpath);
public XmlNodeList SelectNodes(string xpath);
function selectNodes(xpath)
Public Function SelectNodes (xpath As String) As XmlNodeList

參數

xpath
String

Platform::String

winrt::hstring

指定 XPath 運算式。

傳回

套用指定的模式比對作業所選取的節點集合。 如果未選取任何節點,這個方法會傳回空的集合。

實作

M:Windows.Data.Xml.Dom.IXmlNodeSelector.SelectNodes(System.String) M:Windows.Data.Xml.Dom.IXmlNodeSelector.SelectNodes(Platform::String) M:Windows.Data.Xml.Dom.IXmlNodeSelector.SelectNodes(winrt::hstring)

適用於