WorkflowRuntime::GetLoadedWorkflows Method ()

 

Gets a collection that contains all the workflow instances currently loaded in memory.

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

public:
ReadOnlyCollection<WorkflowInstance^>^ GetLoadedWorkflows()

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: