System.Data.IDbConnection.BeginTransaction Method

Begins a database transaction with the specified System.Data.IsolationLevel value.

Syntax

public IDbTransaction BeginTransaction (IsolationLevel il)

Parameters

il
One of the System.Data.IsolationLevel values.

Returns

An object representing the new transaction.

Remarks

Once the transaction has completed, you must explicitly commit or roll back the transaction using the IDbTransaction.Commit or IDbTransaction.Rollback methods.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0