RouteHandlerOptions Class

Definition

Options for controlling the behavior of MapGet(IEndpointRouteBuilder, String, Delegate) and similar methods.

C#
public sealed class RouteHandlerOptions
Inheritance
RouteHandlerOptions

Constructors

Properties

ThrowOnBadRequest

Controls whether endpoints should throw a BadHttpRequestException in addition to writing a Debug log when handling invalid requests.

Applies to

Produk Versi
ASP.NET Core 6.0, 7.0, 8.0, 9.0