ControllerEndpointRouteBuilderExtensions.MapFallbackToAreaController メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| Name | 説明 |
|---|---|
| MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) |
優先度が最も低いファイル名以外の要求と一致する特殊な RouteEndpoint を IEndpointRouteBuilder に追加します。 要求は、 |
| MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) |
優先度が最も低いファイル名以外の要求と一致する特殊な RouteEndpoint を IEndpointRouteBuilder に追加します。 要求は、 |
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String)
優先度が最も低いファイル名以外の要求と一致する特殊な RouteEndpoint を IEndpointRouteBuilder に追加します。 要求は、 action、 controller、および areaに一致するコントローラー エンドポイントにルーティングされます。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapFallbackToAreaController(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ action, System::String ^ controller, System::String ^ area);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string action, string controller, string area);
static member MapFallbackToAreaController : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * string * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapFallbackToAreaController (endpoints As IEndpointRouteBuilder, action As String, controller As String, area As String) As IEndpointConventionBuilder
パラメーター
- endpoints
- IEndpointRouteBuilder
ルートを追加する IEndpointRouteBuilder 。
- action
- String
そのアクション名。
- controller
- String
コントローラー名。
- area
- String
エリア名。
返品
注釈
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) は、要求の URL パスにファイル名が含まれず、他のエンドポイントが一致していない場合を処理することを目的としています。 これは、動的コンテンツの要求を SPA フレームワークにルーティングする一方で、存在しないファイルの要求が HTTP 404 になる場合にも便利です。
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) は、パターン {*path:nonfile}を使用してエンドポイントを登録します。 登録されたエンドポイントの順序が int.MaxValueされます。
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) はルーティングを再実行せず、他の場所で定義されているルートに基づいてルート値を生成しません。 このオーバーロードを使用すると、 path ルート値が使用可能になります。
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String) は、指定された action、 controller、および areaに一致する複数のアクション間であいまいさを解消しようとしません。 複数のアクションがこれらの値と一致する場合、結果は実装定義されます。
適用対象
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String)
優先度が最も低いファイル名以外の要求と一致する特殊な RouteEndpoint を IEndpointRouteBuilder に追加します。 要求は、 action、 controller、および areaに一致するコントローラー エンドポイントにルーティングされます。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IEndpointConventionBuilder ^ MapFallbackToAreaController(Microsoft::AspNetCore::Routing::IEndpointRouteBuilder ^ endpoints, System::String ^ pattern, System::String ^ action, System::String ^ controller, System::String ^ area);
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapFallbackToAreaController(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string pattern, string action, string controller, string area);
static member MapFallbackToAreaController : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * string * string * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder
<Extension()>
Public Function MapFallbackToAreaController (endpoints As IEndpointRouteBuilder, pattern As String, action As String, controller As String, area As String) As IEndpointConventionBuilder
パラメーター
- endpoints
- IEndpointRouteBuilder
ルートを追加する IEndpointRouteBuilder 。
- pattern
- String
ルート パターン。
- action
- String
そのアクション名。
- controller
- String
コントローラー名。
- area
- String
エリア名。
返品
注釈
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) は、要求の URL パスにファイル名が含まれず、他のエンドポイントが一致していない場合を処理することを目的としています。 これは、動的コンテンツの要求を SPA フレームワークにルーティングする一方で、存在しないファイルの要求が HTTP 404 になる場合にも便利です。
登録されたエンドポイントの順序が int.MaxValueされます。
このオーバーロードでは、指定された pattern 逐語的に使用されます。 静的ファイルの要求を除外するには、 :nonfile ルート制約を使用します。
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) はルーティングを再実行せず、他の場所で定義されているルートに基づいてルート値を生成しません。 このオーバーロードを使用する場合は、一致する pattern によって提供されるルート値を使用できます。
MapFallbackToAreaController(IEndpointRouteBuilder, String, String, String, String) は、指定された action、 controller、および areaに一致する複数のアクション間であいまいさを解消しようとしません。 複数のアクションがこれらの値と一致する場合、結果は実装定義されます。