Rollback
Purpose
The CMetaRepository class Rollback function resets the transaction nesting level counter to zero and closes an open explicit transaction.
Description
If an explicit transaction is currently open, the CMetaRepository class Rollback function resets the transaction nesting level counter to zero and closes the transaction. The entire explicit transaction is rolled back.
Nested transactions within an explicit transaction are not separate transactions, but are part of a single flat transaction, so the Rollback function rolls all such nested transactions back.
If the user calls the Rollback function when there is no explicit transaction open, the Rollback function returns an error code.
Note: The Rollback function closes all nesting levels of the currently open transaction and terminates the entire transaction, whereas the Commit function closes only the current nesting level.
Syntax
HRESULT Rollback();