다음을 통해 공유


DbConnectionDispatcher.GetState(DbConnection, DbInterceptionContext) 메서드

정의

public virtual System.Data.ConnectionState GetState(System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbInterceptionContext interceptionContext);
abstract member GetState : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> System.Data.ConnectionState
override this.GetState : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.DbInterceptionContext -> System.Data.ConnectionState
Public Overridable Function GetState (connection As DbConnection, interceptionContext As DbInterceptionContext) As ConnectionState

매개 변수

connection
DbConnection

작업이 실행될 연결입니다.

interceptionContext
DbInterceptionContext

호출의 컨텍스트에 대한 선택적 정보입니다.

반환

인터셉터에 의해 수정되었을 수 있는 작업의 결과입니다.

설명

속성 값은 이 메서드에서 반환됩니다. 가로채기 컨텍스트가 인터셉터에 전달되기 전에 복제되므로 이 메서드에 전달된 가로채기 컨텍스트에서는 결과를 사용할 수 없습니다.

적용 대상