共用方式為


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

活動的執行狀態。

適用於