DbConnection.IDbConnection.BeginTransaction Method

Definition

Begins a database transaction.

Overloads

IDbConnection.BeginTransaction()

Begins a database transaction.

IDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified isolation level.

IDbConnection.BeginTransaction()

Begins a database transaction.

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction() = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction ();
Function BeginTransaction () As IDbTransaction Implements IDbConnection.BeginTransaction

Returns

An object that represents the new transaction.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the DbConnection instance is cast to an IDbConnection interface.

For more information, see BeginTransaction.

See also

IDbConnection.BeginTransaction(IsolationLevel)

Begins a database transaction with the specified isolation level.

 virtual System::Data::IDbTransaction ^ System.Data.IDbConnection.BeginTransaction(System::Data::IsolationLevel isolationLevel) = System::Data::IDbConnection::BeginTransaction;
System.Data.IDbTransaction IDbConnection.BeginTransaction (System.Data.IsolationLevel isolationLevel);

Parameters

isolationLevel
IsolationLevel

One of the enumeration values that specifies the isolation level for the transaction to use.

Returns

An object that represents the new transaction.

Implements

Remarks

For more information, see BeginTransaction.

See also

Applies to