The Transaction type exposes the following members.
Methods
Name | Description | |
---|---|---|
Abort |
Cause an abnormal termination of the transaction.
| |
Commit | Overloaded. In the case of nested transactions, if the transaction is a parent transaction, committing the parent transaction causes all unresolved children of the parent to be committed. In the case of nested transactions, if the transaction is a child transaction, its locks are not released, but are acquired by its parent. Although the commit of the child transaction succeeds, the actual resolution of the child transaction is postponed until the parent transaction is committed or aborted; if its parent transaction commits, it is committed; and if its parent transaction aborts, it is aborted. All cursors opened within the transaction must be closed before the transaction is committed. If there are cursor handles open when this method is called, they are all closed inside this method. And if there are errors when closing the cursor handles, the transaction is aborted and the first such error is returned. | |
Discard |
Free up all the per-process resources associated with the specified
Transaction instance, neither committing nor aborting the
transaction.
| |
Equals | (Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
Prepare |
Initiate the beginning of a two-phase commit.
| |
SetLockTimeout |
Set the timeout value for locks for this transaction.
| |
SetTxnTimeout |
Set the timeout value for transactions for this transaction.
| |
ToString | (Inherited from Object.) |