RouteHandlerOptions.ThrowOnBadRequest 속성

정의

잘못된 요청을 처리할 때 로그를 작성하는 것 외에도 엔드포인트가 을 Debug throw BadHttpRequestException 해야 하는지 여부를 제어합니다.

public bool ThrowOnBadRequest { get; set; }
member this.ThrowOnBadRequest : bool with get, set
Public Property ThrowOnBadRequest As Boolean

속성 값

설명

기본값은 IsDevelopment(IHostEnvironment)입니다.

적용 대상