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 will succeed, the actual resolution of the child transaction is postponed until the parent transaction is committed or aborted; that is, if its parent transaction commits, it will be committed; and if its parent transaction aborts, it will be aborted. All cursors opened within the transaction must be closed before the transaction is committed. | |
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.) |