PageTheme.XPathSelect 方法
定义
针对主题外观文件中的基于 XML 的数据提供运行时数据绑定,并返回实现 IEnumerable 接口的节点集合。Provides run-time data binding against XML-based data in a theme skin file and returns a node collection that implements the IEnumerable interface.
重载
| XPathSelect(String) |
计算 XPath 数据绑定表达式,并返回实现 IEnumerable 接口的节点集合。Evaluates an XPath data-binding expression and returns a node collection that implements the IEnumerable interface. |
| XPathSelect(String, IXmlNamespaceResolver) |
使用用于命名空间解析的指定前缀和命名空间映射计算 XPath 数据绑定表达式,并返回实现 IEnumerable 接口的节点集合。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)
计算 XPath 数据绑定表达式,并返回实现 IEnumerable 接口的节点集合。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
参数
- xPathExpression
- String
要计算的 XPath 表达式。The XPath expression to evaluate. 有关详细信息,请参阅 XPathBinder。For details, see XPathBinder.
返回
一个 IEnumerable 节点列表。An IEnumerable list of nodes.
注解
XPathSelect方法使用 GetDataItem 方法解析 IXPathNavigable 计算表达式时所依据的对象引用。The XPathSelect method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.
另请参阅
适用于
XPathSelect(String, IXmlNamespaceResolver)
使用用于命名空间解析的指定前缀和命名空间映射计算 XPath 数据绑定表达式,并返回实现 IEnumerable 接口的节点集合。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
参数
- xPathExpression
- String
要计算的 XPath 表达式。The XPath expression to evaluate. 有关详细信息,请参阅 XPathBinder。For details, see XPathBinder.
- resolver
- IXmlNamespaceResolver
一组用于命名空间解析的前缀和命名空间映射。A set of prefix and namespace mappings used to for namespace resolution.
返回
一个 IEnumerable 节点列表。An IEnumerable list of nodes.
注解
XPathSelect方法使用 GetDataItem 方法解析 IXPathNavigable 计算表达式时所依据的对象引用。The XPathSelect method uses the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.