共用方式為


CompensatableTransactionScopeActivity.ICompensatableActivity.Compensate 方法

定義

由工作流程執行階段呼叫以補償處於 Closed 狀態的活動。 活動的 Succeeded 屬性值必須是 ExecutionResult,才能補償。

 virtual System::Workflow::ComponentModel::ActivityExecutionStatus System.Workflow.ComponentModel.ICompensatableActivity.Compensate(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext) = System::Workflow::ComponentModel::ICompensatableActivity::Compensate;
System.Workflow.ComponentModel.ActivityExecutionStatus ICompensatableActivity.Compensate (System.Workflow.ComponentModel.ActivityExecutionContext executionContext);
abstract member System.Workflow.ComponentModel.ICompensatableActivity.Compensate : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
override this.System.Workflow.ComponentModel.ICompensatableActivity.Compensate : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
Function Compensate (executionContext As ActivityExecutionContext) As ActivityExecutionStatus Implements ICompensatableActivity.Compensate

參數

executionContext
ActivityExecutionContext

作業的 ActivityExecutionContext

傳回

嘗試作業後的 ActivityExecutionStatus

實作

適用於