WorkflowRuntime.GetLoadedWorkflows WorkflowRuntime.GetLoadedWorkflows WorkflowRuntime.GetLoadedWorkflows WorkflowRuntime.GetLoadedWorkflows Method

정의

현재 메모리에 로드된 모든 워크플로 인스턴스를 포함하는 컬렉션을 가져옵니다.Gets a collection that contains all the workflow instances currently loaded in memory.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Workflow::Runtime::WorkflowInstance ^> ^ GetLoadedWorkflows();
public System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.Runtime.WorkflowInstance> GetLoadedWorkflows ();
member this.GetLoadedWorkflows : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.Runtime.WorkflowInstance>
Public Function GetLoadedWorkflows () As ReadOnlyCollection(Of WorkflowInstance)

반환

현재 메모리에 로드된 각 워크플로 인스턴스에 대한 WorkflowInstance 개체입니다.A WorkflowInstance object for each workflow instance currently loaded in memory.

예외

예제

다음 예제에서는 WorkflowRuntime 개체에서 로드된 워크플로 컬렉션을 검색하는 방법을 보여 줍니다.The following example demonstrates how to retrieve a collection of loaded workflows from a WorkflowRuntime object.

// Create a new workflow runtime
WorkflowRuntime workflowRuntime = new WorkflowRuntime();
// Start the runtime
workflowRuntime.StartRuntime();
// Create a collection of workflow instances
ReadOnlyCollection<WorkflowInstance> workflows;
// Populate the collection of workflow instances
workflows = workflowRuntime.GetLoadedWorkflows();
' Create a new workflow runtime
Dim workflowRuntime As New WorkflowRuntime()
' Start the runtime
workflowRuntime.StartRuntime()
' Create a collection of workflow instances
Dim workflows As ReadOnlyCollection(Of WorkflowInstance)
' Populate the collection of workflow instances
workflows = workflowRuntime.GetLoadedWorkflows()

설명

GetWorkflow와 달리 이 메서드는 런타임이 시작되지 않은 경우 InvalidOperationException을 throw하지 않습니다.Note that, unlike GetWorkflow, this method does not throw a InvalidOperationException if the runtime is not started.

적용 대상