WorkflowRuntime.GetLoadedWorkflows Yöntem

Tanım

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

C#
public System.Collections.ObjectModel.ReadOnlyCollection<System.Workflow.Runtime.WorkflowInstance> GetLoadedWorkflows ();

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.

C#
// 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();

Açıklamalar

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

Şunlara uygulanır

Ürün Sürümler
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8