Meta Data Services Programming
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 other transactions are permitted to open the repository database from within the same process.
- Whether updates are cached until the Commit is performed.
- How long to wait for a transaction to start.
- How long to wait for a query to complete.
- How long to wait for a lock on a repository object.
- Whether other transactions are permitted to open the repository database from within the same process.
- 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 about the transaction options you can set, see TransactionFlags Enumeration.
See Also
IRepositoryTransaction Interface