Прочетете на английски Редактиране

Споделяне чрез


WorkflowInstance.Resume Method

Definition

Resumes execution of a previously suspended workflow instance.

C#
public void 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.

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

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

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1