ICompensatableActivity.Compensate(ActivityExecutionContext) Method

Definition

Called by the workflow runtime to compensate an activity that is in the Closed state. The activity must have a value of Succeeded for its ExecutionResult property in order to be compensatable.

public System.Workflow.ComponentModel.ActivityExecutionStatus Compensate(System.Workflow.ComponentModel.ActivityExecutionContext executionContext);

Parameters

executionContext
ActivityExecutionContext

The ActivityExecutionContext for the operation.

Returns

The ActivityExecutionStatus after operation has been tried.

Applies to

Produto Versões
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1