BeginDbTransaction Method

DbConnection.BeginDbTransaction Method (IsolationLevel)

 

Starts a database transaction.

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

abstract BeginDbTransaction : 
        isolationLevel:IsolationLevel -> DbTransaction

Parameters

isolationLevel
Type: System.Data.IsolationLevel

Specifies the isolation level for the transaction.

Return Value

Type: System.Data.Common.DbTransaction

An object representing the new transaction.

If you are creating your own connection type, override this method to implement the code necessary to begin a transaction.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft