AsyncCodeActivity<TResult>.BeginExecute 方法

定义

当在派生类中实现并使用指定的执行上下文、回调方法和用户状态时,将异步活动排入运行时工作流队列中。

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 的执行环境的信息。

callback
AsyncCallback

要在异步活动和完成通知发生之后调用的方法。

state
Object

为异步活动的实例保存变量信息的对象。

返回

一个对象。

适用于