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处理程序,并显示WorkflowApplicationInstanceId卸载的工作流。

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

适用于