Share via


Server.IsInTransaction 속성

정의

Server에서 시작된 활성 트랜잭션이 있는지를 나타내는 값을 가져옵니다.

public bool IsInTransaction { get; }
member this.IsInTransaction : bool
Public ReadOnly Property IsInTransaction As Boolean

속성 값

설명

서버 개체는 적절한 메서드(BeginTransaction, CommitTransaction, RollbackTransaction)를 호출하여 시작, 커밋 또는 되돌려진 트랜잭션을 추적합니다. IsInTransaction 값은 서버의 상태를 반영합니다. Server 개체를 인스턴스화하고 트랜잭션이 이미 진행 중인 기존 세션에 연결하는 경우 IsInTransaction은 다른 연결에서 시작된 트랜잭션을 인식하지 못하므로 false를 반환합니다.

적용 대상