共用方式為


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

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.

See Also

Reference

SPDataSourceView Class

SPDataSourceView Members

Microsoft.SharePoint.WebControls Namespace