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 物件。

例外狀況

備註

請注意,與 GetWorkflow不同,此方法若執行時未啟動,則不會拋出 a InvalidOperationException

適用於