Condividi tramite


CompensatableTransactionScopeActivity.ICompensatableActivity.Compensate Metodo

Definizione

Chiamata dall’esecuzione del flusso di lavoro per compensare un'attività in stato Closed. L'attività deve avere un valore di Succeeded per la proprietà ExecutionResult per poter essere compensabile.

 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

Parametri

executionContext
ActivityExecutionContext

Oggetto ActivityExecutionContext per l'operazione.

Restituisce

ActivityExecutionStatus dopo il tentativo di esecuzione dell’operazione.

Implementazioni

Si applica a