共用方式為


WorkflowApplication.Unloaded 屬性

定義

取得或設定現有工作流程卸載時叫用的 Action<T>

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)

屬性值

卸載工作流程執行個體時叫用的動作。

範例

下列程式碼範例會檢查傳遞給 WorkflowApplicationEventArgs 執行個體之 Unloaded 處理常式的 WorkflowApplication,並且顯示已卸載之工作流程的 InstanceId

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

適用於