Dela via


IDbConnection.BeginTransaction Method

Begins a database transaction.

Namespace:  Microsoft.ReportingServices.DataProcessing
Assemblies:   Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)

Syntax

'Declaration
Function BeginTransaction As IDbTransaction
'Usage
Dim instance As IDbConnection
Dim returnValue As IDbTransaction

returnValue = instance.BeginTransaction()
IDbTransaction BeginTransaction()
IDbTransaction^ BeginTransaction()
abstract BeginTransaction : unit -> IDbTransaction 
function BeginTransaction() : IDbTransaction

Return Value

Type: Microsoft.ReportingServices.DataProcessing.IDbTransaction
An object representing the new transaction.

Remarks

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