BeginTransaction 方法

Begins a database transaction.

命名空间:  Microsoft.ReportingServices.DataProcessing
程序集:  Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)

语法

声明
Function BeginTransaction As IDbTransaction
用法
Dim instance As IDbConnection
Dim returnValue As IDbTransaction

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

返回值

类型:Microsoft.ReportingServices.DataProcessing. . :: . .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.