共用方式為


AdomdConnection.IDbConnection.BeginTransaction 方法 (IsolationLevel)

Begins a database transaction with the specified isolation level value.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Private Function BeginTransaction ( _
    isolationLevel As IsolationLevel _
) As IDbTransaction Implements IDbConnection.BeginTransaction
'用途
Dim instance As AdomdConnection 
Dim isolationLevel As IsolationLevel 
Dim returnValue As IDbTransaction 

returnValue = CType(instance, IDbConnection).BeginTransaction(isolationLevel)
IDbTransaction IDbConnection.BeginTransaction(
    IsolationLevel isolationLevel
)
private:
virtual IDbTransaction^ BeginTransaction(
    IsolationLevel isolationLevel
) sealed = IDbConnection::BeginTransaction
private abstract BeginTransaction : 
        isolationLevel:IsolationLevel -> IDbTransaction  
private override BeginTransaction : 
        isolationLevel:IsolationLevel -> IDbTransaction
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

  • isolationLevel
    型別:System.Data.IsolationLevel
    One of the enumeration values that specifies the transaction locking behavior for the connection.

傳回值

型別:System.Data.IDbTransaction
An object representing the new transaction.

實作

IDbConnection.BeginTransaction(IsolationLevel)

請參閱

參考

AdomdConnection 類別

BeginTransaction 多載

Microsoft.AnalysisServices.AdomdClient 命名空間