Managing Transactions
Each instance of the Repository class implements the IRepositoryTransaction interface, which supports these methods and properties:
-
The Begin method, which marks the beginning of a transaction.
-
The Commit method, which marks the end of a transaction.
-
The Abort method, which cancels a transaction and undoes all updates performed by the transaction.
-
The GetOption and SetOption methods, which get and set transaction options that control:
-
Whether or not other transactions are permitted to open the Repository database from within the same process.
-
Whether or not updates are cached until the Commit is performed.
-
How long to wait for a transaction to start.
-
How long to wait for a lock on a Repository object.
-
The Status property, which indicates whether or not a transaction is currently active.
For each open Repository instance, the pointer to the IRepositoryTransaction interface is available through the Transaction property.
For More Information Repository Automation Reference; Repository COM Reference