WorkflowApplication.PersistableIdle Özellik

Tanım

Geçerli iş akışı örneği boşta olduğunda çağrılan ve kalıcı hale gelebilen temsilciyi alır veya ayarlar.

public:
 property Func<System::Activities::WorkflowApplicationIdleEventArgs ^, System::Activities::PersistableIdleAction> ^ PersistableIdle { Func<System::Activities::WorkflowApplicationIdleEventArgs ^, System::Activities::PersistableIdleAction> ^ get(); void set(Func<System::Activities::WorkflowApplicationIdleEventArgs ^, System::Activities::PersistableIdleAction> ^ value); };
public Func<System.Activities.WorkflowApplicationIdleEventArgs,System.Activities.PersistableIdleAction> PersistableIdle { get; set; }
member this.PersistableIdle : Func<System.Activities.WorkflowApplicationIdleEventArgs, System.Activities.PersistableIdleAction> with get, set
Public Property PersistableIdle As Func(Of WorkflowApplicationIdleEventArgs, PersistableIdleAction)

Özellik Değeri

Geçerli iş akışı örneği boşta olduğunda çağrılan ve kalıcı hale gelebilen temsilci.

Örnekler

Aşağıdaki örnek işleyiciyi PersistableIdle işler ve çalışma zamanına iş akışını kalıcı hale getirmek ve kaldırmak için yönerge gönderir.

wfApp.PersistableIdle = delegate(WorkflowApplicationIdleEventArgs e)
{
    // Instruct the runtime to persist and unload the workflow
    return PersistableIdleAction.Unload;
};

Açıklamalar

Bir iş akışı boşta kaldığında ve kalıcı hale geldiğinde, hem hem de IdlePersistableIdle bu sırayla çağrılır. İşleyici PersistableIdle , PersistableIdleActionveya Nonesabit listesi değerlerinden Persistbirini Unload döndürür.

Şunlara uygulanır