CompensatableTransactionScopeActivity.ICompensatableActivity.Compensate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Parameters
- executionContext
- ActivityExecutionContext
The ActivityExecutionContext for the operation.
Returns
The ActivityExecutionStatus after operation has been tried.
Implements
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.