共用方式為


IWorkflowInstanceManagement.BeginSuspend 方法

定義

開始會暫止指定工作流程執行個體的非同步作業。

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

參數

instanceId
Guid

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

reason
String

暫止工作流程執行個體的原因。

callback
AsyncCallback

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

state
Object

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

傳回

IAsyncResult

屬性

備註

暫止處理程序會暫時中止工作流程執行個體。

適用於