다음을 통해 공유


WorkflowRuntime.GetLoadedWorkflows 메서드

정의

현재 메모리에 로드된 모든 워크플로 인스턴스를 포함하는 컬렉션을 가져옵니다.

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 개체입니다.

예외

예제

다음 예제에서는 WorkflowRuntime 개체에서 로드된 워크플로 컬렉션을 검색하는 방법을 보여 줍니다.

// 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하지 않습니다.

적용 대상