共用方式為


BeginTransaction 方法

Begins a database transaction.

命名空間:  Microsoft.ReportingServices.DataProcessing
組件:   Microsoft.ReportingServices.SharePoint.UI.WebParts (在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  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.