Bagikan melalui


WorkflowApplication.Unloaded Properti

Definisi

Mendapatkan atau mengatur Action<T> yang dipanggil ketika alur kerja saat ini dibongkar.

public:
 property Action<System::Activities::WorkflowApplicationEventArgs ^> ^ Unloaded { Action<System::Activities::WorkflowApplicationEventArgs ^> ^ get(); void set(Action<System::Activities::WorkflowApplicationEventArgs ^> ^ value); };
public Action<System.Activities.WorkflowApplicationEventArgs> Unloaded { get; set; }
member this.Unloaded : Action<System.Activities.WorkflowApplicationEventArgs> with get, set
Public Property Unloaded As Action(Of WorkflowApplicationEventArgs)

Nilai Properti

Tindakan yang dipanggil saat instans alur kerja dibongkar.

Contoh

Contoh kode berikut memeriksa WorkflowApplicationEventArgs yang diteruskan ke Unloaded handler WorkflowApplication instans InstanceId dan menampilkan alur kerja yang dibongkar.

wfApp.Unloaded = delegate(WorkflowApplicationEventArgs e)
{
    Console.WriteLine("Workflow {0} unloaded.", e.InstanceId);
};

Berlaku untuk