OleDbTransaction OleDbTransaction OleDbTransaction OleDbTransaction Class


Represents an SQL transaction to be made at a data source. This class cannot be inherited.

public ref class OleDbTransaction sealed : System::Data::Common::DbTransaction
public sealed class OleDbTransaction : System.Data.Common.DbTransaction
type OleDbTransaction = class
    inherit DbTransaction
Public NotInheritable Class OleDbTransaction
Inherits DbTransaction


The application creates an OleDbTransaction object by calling BeginTransaction on the OleDbConnection object. All subsequent operations associated with the transaction (for example, committing or aborting the transaction), are performed on the OleDbTransaction object.


Connection Connection Connection Connection

Gets the OleDbConnection object associated with the transaction, or null if the transaction is no longer valid.

IsolationLevel IsolationLevel IsolationLevel IsolationLevel

Specifies the IsolationLevel for this transaction.


Begin() Begin() Begin() Begin()

Initiates a nested database transaction.

Begin(IsolationLevel) Begin(IsolationLevel) Begin(IsolationLevel) Begin(IsolationLevel)

Initiates a nested database transaction and specifies the isolation level to use for the new transaction.

Commit() Commit() Commit() Commit()

Commits the database transaction.

CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
Rollback() Rollback() Rollback() Rollback()

Rolls back a transaction from a pending state.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Applies to

See also