Transaction members

Include protected members
Include inherited members

A class that encapsulates a transaction on a JET_SESID.

The Transaction type exposes the following members.

Constructors

  Name Description
Public method Transaction Initializes a new instance of the Transaction class. This automatically begins a transaction. The transaction will be rolled back if not explicitly committed.

Top

Properties

  Name Description
Protected property HasResource Gets a value indicating whether the underlying resource is currently allocated. (Inherited from EsentResource.)
Public property IsInTransaction Gets a value indicating whether this object is currently in a transaction.

Top

Methods

  Name Description
Public method Begin Begin a transaction. This object should not currently be in a transaction.
Protected method CheckObjectIsNotDisposed Throw an exception if this object has been disposed. (Inherited from EsentResource.)
Public method Commit(CommitTransactionGrbit) Commit a transaction. This object should be in a transaction.
Public method Commit(CommitTransactionGrbit, TimeSpan, JET_COMMIT_ID) Commit a transaction. This object should be in a transaction.
Public method Dispose() Dispose of this object, releasing the underlying Esent resource. (Inherited from EsentResource.)
Protected method Dispose(Boolean) Called by Dispose and the finalizer. (Inherited from EsentResource.)
Public method Equals (Inherited from Object.)
Protected method Finalize Finalizes an instance of the EsentResource class. (Inherited from EsentResource.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method ReleaseResource Called when the transaction is being disposed while active. This should rollback the transaction. (Overrides EsentResource.ReleaseResource().)
Protected method ResourceWasAllocated Called by a subclass when a resource is allocated. (Inherited from EsentResource.)
Protected method ResourceWasReleased Called by a subclass when a resource is freed. (Inherited from EsentResource.)
Public method Rollback Rollback a transaction. This object should be in a transaction.
Public method ToString Returns a String that represents the current Transaction. (Overrides Object.ToString().)

Top

See also

Reference

Transaction class

Microsoft.Isam.Esent.Interop namespace