IWorkflowInstanceManagement.BeginTerminate 方法

定义

开始异步操作以终止指定的工作流实例。

public:
 IAsyncResult ^ BeginTerminate(Guid instanceId, System::String ^ reason, AsyncCallback ^ callback, System::Object ^ state);
[System.ServiceModel.OperationContract(AsyncPattern=true, Name="Terminate")]
public IAsyncResult BeginTerminate (Guid instanceId, string reason, AsyncCallback callback, object state);
[<System.ServiceModel.OperationContract(AsyncPattern=true, Name="Terminate")>]
abstract member 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

要终止的工作流实例的 GUID 标识符。

reason
String

终止工作流实例的原因。

callback
AsyncCallback

可接收异步操作完成通知的异步回调委托。

state
Object

一个由应用程序指定的对象,包含与异步终止操作相关联的状态信息。

返回

IAsyncResult

属性

注解

终止进程会结束工作流实例。

适用于