DbTransaction Class

 

The base class for a transaction.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)


Public MustInherit Class DbTransaction
	Inherits MarshalByRefObject
	Implements IDbTransaction, IDisposable

NameDescription
System_CAPS_protmethodDbTransaction()

Initializes a new DbTransaction object.

NameDescription
System_CAPS_pubpropertyConnection

Specifies the DbConnection object associated with the transaction.

System_CAPS_protpropertyDbConnection

Specifies the DbConnection object associated with the transaction.

System_CAPS_pubpropertyIsolationLevel

Specifies the IsolationLevel for this transaction.

NameDescription
System_CAPS_pubmethodCommit()

Commits the database transaction.

System_CAPS_pubmethodCreateObjRef(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.)

System_CAPS_pubmethodDispose()

Releases the unmanaged resources used by the DbTransaction.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the DbTransaction and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodRollback()

Rolls back a transaction from a pending state.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privpropertyIDbTransaction.Connection

Gets the DbConnection object associated with the transaction, or a null reference if the transaction is no longer valid.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: