DataServiceQuery<TElement>.BeginExecute(AsyncCallback, Object) 方法

定義

啟動非同步網路作業,執行這個物件執行個體所表示的查詢。

public:
 IAsyncResult ^ BeginExecute(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginExecute (AsyncCallback callback, object state);
override this.BeginExecute : AsyncCallback * obj -> IAsyncResult
Public Function BeginExecute (callback As AsyncCallback, state As Object) As IAsyncResult

參數

callback
AsyncCallback

作業完成時要叫用的委派 (Delegate)。

state
Object

使用者定義的物件,用來在啟動作業與 callback 所定義的回呼 (Callback) 之間傳輸狀態。

傳回

IAsyncResult,表示非同步作業的狀態。

適用於