WorkflowRuntime.WorkflowAborted 事件

定义

在中止工作流实例时发生。

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来中止工作流实例。

对于此事件,发送方包含 WorkflowRuntimeWorkflowEventArgs 包含 WorkflowInstance 与事件关联的事件。

有关处理事件的详细信息,请参阅 处理和引发事件

适用于