System.Data.OleDb.OleDbConnection.BeginTransaction Method

Starts a database transaction with the current System.Data.IsolationLevel value.

Syntax

public OleDbTransaction BeginTransaction ()

Returns

An object representing the new transaction.

Remarks

You must explicitly commit or roll back the transaction using the OleDbTransaction.Commit or OleDbTransaction.Rollback method. To make sure that the .NET Framework Data Provider for OLE DB transaction management model performs correctly, avoid using other transaction management models, such as those provided by the data source.

Requirements

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