Sdílet prostřednictvím


CompensatableTransactionScopeActivity.ICompensatableActivity.Compensate Metoda

Definice

Volána modulem runtime pracovního postupu ke kompenzaci aktivity, která je ve Closed stavu . Aby byla aktivita kompenzační, musí mít pro svou ExecutionResult vlastnost hodnotu Succeeded .

 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

Parametry

executionContext
ActivityExecutionContext

Pro ActivityExecutionContext operaci.

Návraty

Byla ActivityExecutionStatus vyzkoušena následující operace.

Implementuje

Platí pro