WorkflowUpdateableControlClient.BeginTerminate 方法
定义
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance.
重载
| BeginTerminate(Guid, AsyncCallback, Object) |
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance. |
| BeginTerminate(Guid, String, AsyncCallback, Object) |
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance. |
BeginTerminate(Guid, AsyncCallback, Object)
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance.
public:
IAsyncResult ^ BeginTerminate(Guid instanceId, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginTerminate (Guid instanceId, AsyncCallback callback, object state);
member this.BeginTerminate : Guid * AsyncCallback * obj -> IAsyncResult
Public Function BeginTerminate (instanceId As Guid, callback As AsyncCallback, state As Object) As IAsyncResult
参数
- instanceId
- Guid
要终止的工作流实例。The workflow instance to terminate.
- callback
- AsyncCallback
可接收异步操作完成通知的异步回调委托。The asynchronous callback delegate that receives the notification of the asynchronous operation completion.
- state
- Object
一个包含与异步终止操作关联的状态信息的用户对象。A user-defined object that contains state information associated with the asynchronous terminate operation.
返回
表示异步操作状态的 IAsyncResult 对象。The IAsyncResult object that represents the status of the asynchronous operation.
适用于
BeginTerminate(Guid, String, AsyncCallback, Object)
开始一个异步操作,该操作将终止工作流实例。Begins an asynchronous operation that terminates a workflow instance.
public:
IAsyncResult ^ BeginTerminate(Guid instanceId, System::String ^ reason, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginTerminate (Guid instanceId, string reason, AsyncCallback callback, object state);
member this.BeginTerminate : Guid * string * AsyncCallback * obj -> IAsyncResult
Public Function BeginTerminate (instanceId As Guid, reason As String, callback As AsyncCallback, state As Object) As IAsyncResult
参数
- instanceId
- Guid
要终止的工作流实例。The workflow instance to terminate.
- reason
- String
终止工作流实例的原因。The reason to terminate the workflow instance.
- callback
- AsyncCallback
可接收异步操作完成通知的异步回调委托。The asynchronous callback delegate that receives the notification of the asynchronous operation completion.
- state
- Object
一个包含与异步终止操作关联的状态信息的用户对象。A user-defined object that contains state information associated with the asynchronous terminate operation.
返回
表示异步操作状态的 IAsyncResult 对象。The IAsyncResult object that represents the status of the asynchronous operation.