AsyncCodeActivity<TResult>.BeginExecute(AsyncCodeActivityContext, AsyncCallback, Object) 方法
定義
在衍生類別中實作及使用指定的執行內容、回呼方法和使用者狀態時,將非同步活動加入執行階段工作流程中的佇列。When implemented in a derived class and using the specified execution context, callback method, and user state, enqueues an asynchronous activity in a run-time workflow.
protected:
abstract IAsyncResult ^ BeginExecute(System::Activities::AsyncCodeActivityContext ^ context, AsyncCallback ^ callback, System::Object ^ state);
protected abstract IAsyncResult BeginExecute (System.Activities.AsyncCodeActivityContext context, AsyncCallback callback, object state);
abstract member BeginExecute : System.Activities.AsyncCodeActivityContext * AsyncCallback * obj -> IAsyncResult
Protected MustOverride Function BeginExecute (context As AsyncCodeActivityContext, callback As AsyncCallback, state As Object) As IAsyncResult
參數
- context
- AsyncCodeActivityContext
定義 AsyncCodeActivity 之執行環境的資訊。Information that defines the execution environment for the AsyncCodeActivity.
- callback
- AsyncCallback
在非同步活動和完成通知發生後所呼叫的方法。The method to be called after the asynchronous activity and completion notification have occurred.
- state
- Object
儲存非同步活動之執行個體的變數資訊的物件。An object that saves variable information for an instance of an asynchronous activity.
傳回
物件。An object.