Click or drag to resize
CalculationWorks Logo
BcfTransactionRollback Method (Exception)
Discards the transaction and restores the data from state before the transaction started.

Namespace: CalculationWorks.BusinessModel
Assembly: CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 3.2.1.2
Syntax
public void Rollback(
	Exception reason
)

Parameters

reason
Type: SystemException
When an exception occurs the reason will be placed as inner exception - or in case of a BcfRollbackException as Reason property. Default is null.
Exceptions
ExceptionCondition
InvalidOperationException

IsCurrent is false

or

dataset is Locked; e.g. BcfDataSet is just switching the CurrentTransaction or is undoing/redoing or calculating.

BcfRollbackExceptionRollback failed.
Version Information

CalculationWorks.BusinessModel

Supported in: 3.2, 3.0, 2.1, 2.0
See Also