Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WorkflowRuntime.IsStarted Property

Gets a value that indicates whether the workflow run-time engine has been started.

Namespace:  System.Workflow.Runtime
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

public bool IsStarted { get; }

Property Value

Type: System.Boolean
true if the workflow run-time engine has been started; otherwise, false. The default is false.

IsStarted indicates that the workflow run-time engine services are running. IsStarted is false until the host calls StartRuntime. It remains true until the host calls StopRuntime.


You cannot add core services to the workflow run-time engine while it is running. Core services are services that derive from the WorkflowSchedulerService class, the DefaultWorkflowCommitWorkBatchService class, the WorkflowPersistenceService class, and the TrackingService class.

The following example demonstrates how to access the IsStarted property of a WorkflowRuntime object. In this example, if the runtime is started, a message is printed to the console.

// Create a new workflow runtime
WorkflowRuntime workflowRuntime = new WorkflowRuntime();
// Start the runtime
// If the runtime is started, report to the console. 
if (workflowRuntime.IsStarted)
    Console.WriteLine("Runtime is started.");

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
© 2015 Microsoft