DataSourceView.Select(DataSourceSelectArguments, DataSourceViewSelectCallback) 方法

定義

從基礎資料儲存區非同步取得資料清單。Gets a list of data asynchronously from the underlying data storage.

public:
 virtual void Select(System::Web::UI::DataSourceSelectArguments ^ arguments, System::Web::UI::DataSourceViewSelectCallback ^ callback);
public virtual void Select (System.Web.UI.DataSourceSelectArguments arguments, System.Web.UI.DataSourceViewSelectCallback callback);
abstract member Select : System.Web.UI.DataSourceSelectArguments * System.Web.UI.DataSourceViewSelectCallback -> unit
override this.Select : System.Web.UI.DataSourceSelectArguments * System.Web.UI.DataSourceViewSelectCallback -> unit
Public Overridable Sub Select (arguments As DataSourceSelectArguments, callback As DataSourceViewSelectCallback)

參數

arguments
DataSourceSelectArguments

DataSourceSelectArguments,用於針對資料要求基本資料擷取以外的作業。A DataSourceSelectArguments that is used to request operations on the data beyond basic data retrieval.

callback
DataSourceViewSelectCallback

DataSourceViewSelectCallback 委派,當非同步作業完成時,用來告知資料繫結控制項。A DataSourceViewSelectCallback delegate that is used to notify a data-bound control when the asynchronous operation is complete.

例外狀況

備註

Select方法是所有資料來源 view 物件的非同步資料抓取介面。The Select method is the asynchronous data retrieval interface for all data source view objects. Select方法會呼叫 ExecuteSelect 方法,並傳遞任何 DataSourceSelectArguments 提供的。The Select method calls the ExecuteSelect method, passing any DataSourceSelectArguments supplied. callback參數是一個委派,資料繫結控制項會傳遞至資料來源視圖,用來在作業完成時通知資料繫結控制項 ExecuteSelectThe callback parameter is a delegate that a data-bound control passes to the data source view, which is used to notify the data-bound control when the ExecuteSelect operation has completed. 呼叫所傳回的資料 ExecuteSelect 會在委派的參數中傳回 DataSourceViewSelectCallbackThe data returned by the ExecuteSelect call is returned in the parameter of the DataSourceViewSelectCallback delegate.

適用於

另請參閱