WorkflowApplication.Unloaded 屬性

定義

當目前工作流程卸載時,會被呼叫或設定 Action<T> that。

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)

屬性值

當工作流程實例卸載時會被執行的動作。

範例

以下程式碼範例檢查傳入WorkflowApplicationEventArgsUnloaded處理程序的 並WorkflowApplication顯示InstanceId已卸載的工作流程。

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

適用於