다음을 통해 공유


DbCommandInterceptionContext.WithCommandBehavior(CommandBehavior) 메서드

정의

이 가로채기 컨텍스트의 모든 컨텍스트 정보를 지정된 CommandBehavior와 함께 포함하는 새 DbCommandInterceptionContext 을 만듭니다.

public System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext WithCommandBehavior(System.Data.CommandBehavior commandBehavior);
member this.WithCommandBehavior : System.Data.CommandBehavior -> System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext

매개 변수

commandBehavior
CommandBehavior

연결할 명령 동작입니다.

반환

지정된 명령 동작과 연결된 새 가로채기 컨텍스트입니다.

적용 대상