WorkflowInstance.Resume Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resumes execution of a previously suspended workflow instance.
public:
void Resume();
public void Resume();
member this.Resume : unit -> unit
Public Sub Resume ()
The workflow runtime engine is not running.
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
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.
Продукт | Версии |
---|---|
.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 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: