共用方式為


IWorkflowInstanceManagement.BeginTransactedCancel 方法

定義

開始異動中的非同步取消作業。

public:
 IAsyncResult ^ BeginTransactedCancel(Guid instanceId, AsyncCallback ^ callback, System::Object ^ state);
[System.ServiceModel.OperationContract(AsyncPattern=true, Name="TransactedCancel")]
public IAsyncResult BeginTransactedCancel (Guid instanceId, AsyncCallback callback, object state);
[<System.ServiceModel.OperationContract(AsyncPattern=true, Name="TransactedCancel")>]
abstract member BeginTransactedCancel : Guid * AsyncCallback * obj -> IAsyncResult
Public Function BeginTransactedCancel (instanceId As Guid, callback As AsyncCallback, state As Object) As IAsyncResult

參數

instanceId
Guid

要取消之工作流程執行個體的 GUID 識別碼。

callback
AsyncCallback

非同步回呼委派,此委派會接收非同步作業完成的通知。

state
Object

應用程式所指定的物件,其中包含與非同步取消作業相關聯的狀態資訊。

傳回

IAsyncResult

屬性

備註

取消處理程序會結束工作流程執行個體並返回先前狀態,且不會儲存工作流程所做的任何變更。

適用於