BeginTransaction Method
Collapse the table of content
Expand the table of content

IDbConnection.BeginTransaction Method ()


Begins a database transaction.

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

IDbTransaction BeginTransaction()

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 by using the Commit or Rollback methods.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft