WorkflowRuntime.WorkflowAborted 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在中止工作流实例时发生。
public:
event EventHandler<System::Workflow::Runtime::WorkflowEventArgs ^> ^ WorkflowAborted;
public event EventHandler<System.Workflow.Runtime.WorkflowEventArgs> WorkflowAborted;
member this.WorkflowAborted : EventHandler<System.Workflow.Runtime.WorkflowEventArgs>
Public Custom Event WorkflowAborted As EventHandler(Of WorkflowEventArgs)
Public Event WorkflowAborted As EventHandler(Of WorkflowEventArgs)
事件类型
注解
WorkflowAborted 在清除工作流实例的所有挂起工作之后,但在内存中使工作流实例失效之前发生。 可以通过调用 WorkflowInstance.Abort来中止工作流实例。
对于此事件,发送方包含 WorkflowRuntime 并 WorkflowEventArgs 包含 WorkflowInstance 与事件关联的事件。
有关处理事件的详细信息,请参阅 处理和引发事件。