This documentation is archived and is not being maintained.
WorkflowStatus Enumeration
Visual Studio 2010
Specifies the status of a workflow instance.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
| Member name | Description | |
|---|---|---|
| Running | The workflow instance is running. | |
| Completed | The workflow instance has completed. | |
| Suspended | The workflow instance has been suspended by a SuspendActivity activity, by a call to WorkflowInstance::Suspend,or by the workflow runtime engine. | |
| Terminated | The workflow instance has been terminated by a TerminateActivity activity, by a call to WorkflowInstance::Terminate, or by the workflow runtime engine. | |
| Created | The workflow instance has been created by a call to one of the overloaded WorkflowRuntime::CreateWorkflow methods. |
The following code example demonstrates how you can use the WorkflowStatus values to set the WorkflowStatus property. Each value constrains the SqlTrackingWorkflowInstance in a different way.
This code example is part of the Workflow Monitor SDK Sample from the DatabaseService.cs file. For more information, see Workflow Monitor.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: