语言

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节点列表。

注解

该方法 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 对表达式计算的对象引用。

另请参阅

适用于