WorkflowRuntime::GetLoadedWorkflows Method ()
.NET Framework (current version)
Gets a collection that contains all the workflow instances currently loaded in memory.
Assembly: System.Workflow.Runtime (in System.Workflow.Runtime.dll)
Return Value
Type: System.Collections.ObjectModel::ReadOnlyCollection<WorkflowInstance^>^A WorkflowInstance object for each workflow instance currently loaded in memory.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The WorkflowRuntime is disposed. |
Note that, unlike GetWorkflow, this method does not throw a InvalidOperationException if the runtime is not started.
The following example demonstrates how to retrieve a collection of loaded workflows from a WorkflowRuntime object.
.NET Framework
Available since 3.0
Available since 3.0
Show: