共用方式為


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

屬性

備註

終止處理程序會使工作流程執行個體結束。

適用於