英語で読む

次の方法で共有


RouteHandlerOptions クラス

定義

および同様のメソッドの MapGet(IEndpointRouteBuilder, String, Delegate) 動作を制御するためのオプション。

C#
public sealed class RouteHandlerOptions
継承
RouteHandlerOptions

コンストラクター

RouteHandlerOptions()

および同様のメソッドの MapGet(IEndpointRouteBuilder, String, Delegate) 動作を制御するためのオプション。

プロパティ

ThrowOnBadRequest

無効な要求を処理するときにログを書き込Debugむだけでなく、エンドポイントが をBadHttpRequestExceptionスローするかどうかを制御します。

適用対象

製品 バージョン
ASP.NET Core 6.0, 7.0, 8.0, 9.0