다음을 통해 공유


AdomdConnection.BeginTransaction Method (IsolationLevel)

Begins a new transaction with the specified IsolationLevel enumeration value.

네임스페이스: Microsoft.AnalysisServices.AdomdClient
어셈블리: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

구문

‘선언
Public Function BeginTransaction ( _
    isolationLevel As IsolationLevel _
) As AdomdTransaction
public AdomdTransaction BeginTransaction (
    IsolationLevel isolationLevel
)
public:
AdomdTransaction^ BeginTransaction (
    IsolationLevel isolationLevel
)
public AdomdTransaction BeginTransaction (
    IsolationLevel isolationLevel
)
public function BeginTransaction (
    isolationLevel : IsolationLevel
) : AdomdTransaction

매개 변수

반환 값

An AdomdTransaction that represents the newly started transaction.

예외

예외 유형 상태
System.NotSupportedException

The member was called with an unsupported isolation level.

AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

System.InvalidOperationException

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

  • The connection was not set.

  • The connection was not opened.

  • Either the CommandText property or the CommandStream property was improperly set.

  • Both the CommandText property and the CommandStream property were set.

  • Neither the CommandText property, nor the CommandStream property was set.

주의

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.

[!참고] Only IsolationLevel.ReadCommitted is supported.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

AdomdConnection Class
AdomdConnection Members
Microsoft.AnalysisServices.AdomdClient Namespace