Compartilhar via


Método BeginTransaction

Begins a database transaction.

Namespace:  Microsoft.ReportingServices.DataProcessing
Assembly:  Microsoft.ReportingServices.Interfaces (em Microsoft.ReportingServices.Interfaces.dll)

Sintaxe

'Declaração
Function BeginTransaction As IDbTransaction
'Uso
Dim instance As IDbConnection
Dim returnValue As IDbTransaction

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

Valor de retorno

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

Comentários

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