PageTheme.XPathSelect 方法

定義

提供對主題面板檔案中 XML 架構資料的執行階段資料繫結,並傳回實作 IEnumerable 介面的節點集合。

多載

XPathSelect(String)

評估 XPath 資料繫結運算式,並傳回可以實作 IEnumerable 介面的節點集合。

XPathSelect(String, IXmlNamespaceResolver)

使用命名空間解析所需之指定的前置詞和命名空間對應,評估 XPath 資料繫結運算式,並傳回實作 IEnumerable 介面的節點集合。

XPathSelect(String)

評估 XPath 資料繫結運算式,並傳回可以實作 IEnumerable 介面的節點集合。

protected:
 System::Collections::IEnumerable ^ XPathSelect(System::String ^ xPathExpression);
protected System.Collections.IEnumerable XPathSelect (string xPathExpression);
member this.XPathSelect : string -> System.Collections.IEnumerable
Protected Function XPathSelect (xPathExpression As String) As IEnumerable

參數

xPathExpression
String

要評估的 XPath 運算式。 如需詳細資訊,請參閱 XPathBinder

傳回

IEnumerable

節點的 IEnumerable 清單。

備註

XPathSelect方法 GetDataItem 會使用方法來解析 IXPathNavigable 評估運算式時所針對的物件參考。

另請參閱

適用於

XPathSelect(String, IXmlNamespaceResolver)

使用命名空間解析所需之指定的前置詞和命名空間對應,評估 XPath 資料繫結運算式,並傳回實作 IEnumerable 介面的節點集合。

protected:
 System::Collections::IEnumerable ^ XPathSelect(System::String ^ xPathExpression, System::Xml::IXmlNamespaceResolver ^ resolver);
protected System.Collections.IEnumerable XPathSelect (string xPathExpression, System.Xml.IXmlNamespaceResolver resolver);
member this.XPathSelect : string * System.Xml.IXmlNamespaceResolver -> System.Collections.IEnumerable
Protected Function XPathSelect (xPathExpression As String, resolver As IXmlNamespaceResolver) As IEnumerable

參數

xPathExpression
String

要評估的 XPath 運算式。 如需詳細資訊,請參閱 XPathBinder

resolver
IXmlNamespaceResolver

用來解析命名空間的前置詞和命名空間的對應集合。

傳回

IEnumerable

節點的 IEnumerable 清單。

備註

XPathSelect方法 GetDataItem 會使用方法來解析 IXPathNavigable 評估運算式時所針對的物件參考。

另請參閱

適用於