PageTheme.XPathSelect 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供執行時資料綁定,針對主題皮膚檔案中的 XML 資料,並回傳實作介面的 IEnumerable 節點集合。
多載
| 名稱 | Description |
|---|---|
| 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 節點清單。
備註
該 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 節點清單。
備註
該 XPathSelect 方法利用該 GetDataItem 方法解析 IXPathNavigable 用於評估表達式的物件參考。