AdomdConnection.BeginTransaction AdomdConnection.BeginTransaction AdomdConnection.BeginTransaction Method

Definition

Begins a new transaction.

Overloads

BeginTransaction() BeginTransaction() BeginTransaction()

Begins a new transaction.

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

Begins a new transaction with the specified IsolationLevel enumeration value.

BeginTransaction() BeginTransaction() BeginTransaction()

Begins a new transaction.

public:
 Microsoft::AnalysisServices::AdomdClient::AdomdTransaction ^ BeginTransaction();
public Microsoft.AnalysisServices.AdomdClient.AdomdTransaction BeginTransaction ();
Public Function BeginTransaction () As AdomdTransaction
Returns

An AdomdTransaction that represents the newly started transaction.

Remarks

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

BeginTransaction(IsolationLevel) BeginTransaction(IsolationLevel)

Begins a new transaction with the specified IsolationLevel enumeration value.

public:
 Microsoft::AnalysisServices::AdomdClient::AdomdTransaction ^ BeginTransaction(System::Data::IsolationLevel isolationLevel);
public Microsoft.AnalysisServices.AdomdClient.AdomdTransaction BeginTransaction (System.Data.IsolationLevel isolationLevel);
Parameters
isolationLevel
IsolationLevel IsolationLevel IsolationLevel

An IsolationLevel enumeration value.

Returns

An AdomdTransaction that represents the newly started transaction.

Exceptions

The member was called with an unsupported isolation level.

An error occurred because one of the following conditions was met:

Remarks

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

Note

Only IsolationLevel.ReadCommitted is supported.

Applies to