PageTheme.XPathSelect Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides run-time data binding against XML-based data in a theme skin file and returns a node collection that implements the IEnumerable interface.
Overloads
XPathSelect(String) |
Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface. |
XPathSelect(String, IXmlNamespaceResolver) |
Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution and returns a node collection that implements the IEnumerable interface. |
XPathSelect(String)
Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface.
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
Parameters
- xPathExpression
- String
The XPath expression to evaluate. For details, see XPathBinder.
Returns
An IEnumerable list of nodes.
Remarks
The XPathSelect method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.
See also
Applies to
XPathSelect(String, IXmlNamespaceResolver)
Evaluates an XPath data-binding expression using the specified prefix and namespace mappings for namespace resolution and returns a node collection that implements the IEnumerable interface.
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
Parameters
- xPathExpression
- String
The XPath expression to evaluate. For details, see XPathBinder.
- resolver
- IXmlNamespaceResolver
A set of prefix and namespace mappings used to for namespace resolution.
Returns
An IEnumerable list of nodes.
Remarks
The XPathSelect method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.
See also
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應