SPDataSourceView.ExecuteSelect Method
Retrieves data from the underlying data source using the SelectCommand string and any parameters that are in the SelectParameters collection.
Namespace: Microsoft.SharePoint.WebControls
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overrides Function ExecuteSelect ( _
selectArguments As DataSourceSelectArguments _
) As IEnumerable
'Usage
Dim selectArguments As DataSourceSelectArguments
Dim returnValue As IEnumerable
returnValue = Me.ExecuteSelect(selectArguments)
protected override IEnumerable ExecuteSelect(
DataSourceSelectArguments selectArguments
)
Parameters
selectArguments
Type: System.Web.UI.DataSourceSelectArgumentsAn object that contains the constraints that are applied when retrieving the data.
Return Value
Type: System.Collections.IEnumerable
A System.Collections.IEnumerable object that contains the requested data.
Remarks
The SPDataSourceView class implements the inherited ExecuteSelect method to retrieve data from a list or list item.
Data-bound control authors should not call the ExecuteSelect method directly; instead, use the publicly exposed Select(DataSourceSelectArguments) method.