SequenceActivity.HandleFault(ActivityExecutionContext, Exception) 方法

定义

此实例的执行上下文中引发了异常时调用。

protected:
 override System::Workflow::ComponentModel::ActivityExecutionStatus HandleFault(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext, Exception ^ exception);
protected override System.Workflow.ComponentModel.ActivityExecutionStatus HandleFault (System.Workflow.ComponentModel.ActivityExecutionContext executionContext, Exception exception);
override this.HandleFault : System.Workflow.ComponentModel.ActivityExecutionContext * Exception -> System.Workflow.ComponentModel.ActivityExecutionStatus
Protected Overrides Function HandleFault (executionContext As ActivityExecutionContext, exception As Exception) As ActivityExecutionStatus

参数

executionContext
ActivityExecutionContext

此实例的 ActivityExecutionContext

exception
Exception

导致此错误的 Exception

返回

ActivityExecutionStatus

活动的执行状态。

适用于