WorkflowRuntime.GetLoadedWorkflows Yöntem

Tanım

Şu anda belleğe yüklenmiş olan tüm iş akışı örneklerini içeren bir koleksiyon alır.

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)

Döndürülenler

ReadOnlyCollection<WorkflowInstance>

WorkflowInstance Şu anda belleğe yüklenen her iş akışı örneği için bir nesne.

Özel durumlar

Örnekler

Aşağıdaki örnek, bir nesneden yüklenen iş akışlarından oluşan bir koleksiyonun WorkflowRuntime nasıl alınduğunu gösterir.

// 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()

Açıklamalar

aksine GetWorkflow, çalışma zamanı başlatılmazsa bu yöntemin bir InvalidOperationException oluşturmadığını unutmayın.

Şunlara uygulanır