IDbConnection::BeginTransaction Method (IsolationLevel)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Begins a database transaction with the specified IsolationLevel value.

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

IDbTransaction^ BeginTransaction(
	IsolationLevel il
)

Parameters

il
Type: System.Data::IsolationLevel

One of the IsolationLevel values.

Return Value

Type: System.Data::IDbTransaction^

An object representing the new transaction.

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

.NET Framework
Available since 1.1
Return to top
Show: