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,如果未启动运行时,则不会引发 InvalidOperationException 此方法。

适用于