แก้ไข

แชร์ผ่าน


WorkflowInstance.Resume Method

Definition

Resumes execution of a previously suspended workflow instance.

public:
 void Resume();
public void Resume ();
member this.Resume : unit -> unit
Public Sub Resume ()

Exceptions

The workflow runtime engine is not running.

Examples

The following example demonstrates calling Resume on a previously suspended workflow instance. This example is from the Suspend and Terminate SDK sample. For more information, see Suspend and Terminate Sample.

if (workflowSuspended)
{
    Console.WriteLine("\r\nResuming Workflow Instance");
    workflowInstance.Resume();
    waitHandle.WaitOne();
}
If workflowSuspended Then
    Console.WriteLine("\r\nResuming Workflow Instance")
    workflowInstance.Resume()
    waitHandle.WaitOne()
End If

Remarks

The host can call Resume to resume execution of a workflow instance that has been previously suspended. If the workflow instance is not in the suspended state, no action is taken. The runtime raises the WorkflowResumed event just before execution of the workflow instance is resumed.

Applies to