Npgsql API Documentation |

# NpgsqlConnection.BeginTransaction Method (IsolationLevel)

[This is preliminary documentation and subject to change.]

Begins a database transaction with the specified isolation level.

[Visual Basic]
Overloads Public Function BeginTransaction( _
ByVal level As IsolationLevel _
) As NpgsqlTransaction
[C#]
public NpgsqlTransaction BeginTransaction(
IsolationLevel level
);

#### Parameters

level
  The isolation level under which the transaction should run.

#### Return Value

A NpgsqlTransaction object representing the new transaction.

#### Remarks

Currently the IsolationLevel ReadCommitted and Serializable are supported by the PostgreSQL backend. There's no support for nested transactions.

#### See Also

NpgsqlConnection Class | Npgsql Namespace | NpgsqlConnection.BeginTransaction Overload List