Edit

Share via


IWorkflowInstanceManagement.BeginSuspend Method

Definition

Begins an asynchronous operation to suspend the specified workflow instance.

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

Parameters

instanceId
Guid

The GUID identifier of the workflow instance to suspend.

reason
String

The reason to suspend the workflow instance.

callback
AsyncCallback

The asynchronous callback delegate that receives the notification of the asynchronous operation completion.

state
Object

An object, specified by the application, that contains state information associated with the asynchronous suspend operation.

Returns

The IAsyncResult.

Attributes

Remarks

The suspend process temporarily halts a workflow instance.

Applies to