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

适用于