XPathSelect Method (String, IXmlNamespaceResolver)
Collapse the table of content
Expand the table of content

TemplateControl.XPathSelect Method (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.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

protected internal IEnumerable XPathSelect (
	string xPathExpression,
	IXmlNamespaceResolver resolver
protected IEnumerable XPathSelect (
	String xPathExpression, 
	IXmlNamespaceResolver resolver
protected internal function XPathSelect (
	xPathExpression : String, 
	resolver : IXmlNamespaceResolver
) : IEnumerable
Not applicable.



The XPath expression to evaluate. For more information, see XPathBinder.


A set of prefix and namespace mappings used for namespace resolution.

Return Value

An IEnumerable node list.

The XPathSelect method calls the XPathBinder.Select method using the GetDataItem method to resolve the IXPathNavigable object reference that the expression is evaluated against.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2015 Microsoft