共用方式為


CompositeActivity.HandleFault(ActivityExecutionContext, Exception) 方法

定義

在這個執行個體的執行內容中引發例外狀況時呼叫。

protected public:
 override System::Workflow::ComponentModel::ActivityExecutionStatus HandleFault(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext, Exception ^ exception);
protected internal 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 Friend Overrides Function HandleFault (executionContext As ActivityExecutionContext, exception As Exception) As ActivityExecutionStatus

參數

executionContext
ActivityExecutionContext

這個執行個體的 ActivityExecutionContext

exception
Exception

造成此錯誤的 Exception

傳回

ActivityExecutionStatus

因嘗試取消此執行個體所造成的 ActivityExecutionStatus

例外狀況

executionContext 為 null 參考 (在 Visual Basic 中為 Nothing)。

-或-

exception 為 null 參考 (在 Visual Basic 中為 Nothing)。

適用於