Partager via


BeginTransaction méthode

Begins a database transaction.

Espace de noms :  Microsoft.ReportingServices.DataProcessing
Assembly :  Microsoft.ReportingServices.Interfaces (dans Microsoft.ReportingServices.Interfaces.dll)

Syntaxe

'Déclaration
Function BeginTransaction As IDbTransaction
'Utilisation
Dim instance As IDbConnection
Dim returnValue As IDbTransaction

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

Valeur de retour

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

Notes

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