SPDataSourceView.Select Method (DataSourceSelectArguments)

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
Public Function Select ( _
    arguments As DataSourceSelectArguments _
) As IEnumerable
'Usage
Dim instance As SPDataSourceView
Dim arguments As DataSourceSelectArguments
Dim returnValue As IEnumerable

returnValue = instance.Select(arguments)
public IEnumerable Select(
    DataSourceSelectArguments arguments
)

Parameters

Return Value

Type: System.Collections.IEnumerable
A System.Collections.IEnumerable object that contains the requested data.

Remarks

The publicly exposed Select method calls the protected ExecuteSelect(DataSourceSelectArguments) method, passing the arguments parameter. Data-bound control authors should call the Select method rather than ExecuteSelect. Page developers, on the other hand, should never need to call the Select method as that is the responsibility of the data-bound control.

Before the data retrieval is performed, the OnSelecting method is called to raise the Selecting event. You can handle this event to examine the values of the parameters and to perform any preprocessing before data is retrieved.

See Also

Reference

SPDataSourceView Class

SPDataSourceView Members

Select Overload

Microsoft.SharePoint.WebControls Namespace

ExecuteSelect(DataSourceSelectArguments)