共用方式為


ICompensatableActivity.Compensate(ActivityExecutionContext) 方法

定義

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

public:
 System::Workflow::ComponentModel::ActivityExecutionStatus Compensate(System::Workflow::ComponentModel::ActivityExecutionContext ^ executionContext);
public System.Workflow.ComponentModel.ActivityExecutionStatus Compensate (System.Workflow.ComponentModel.ActivityExecutionContext executionContext);
abstract member Compensate : System.Workflow.ComponentModel.ActivityExecutionContext -> System.Workflow.ComponentModel.ActivityExecutionStatus
Public Function Compensate (executionContext As ActivityExecutionContext) As ActivityExecutionStatus

參數

executionContext
ActivityExecutionContext

作業的 ActivityExecutionContext

傳回

嘗試作業後的 ActivityExecutionStatus

適用於