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);
};

适用于