SpaRouteExtensions.MapSpaFallbackRoute 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object) |
設定路由,如果要求的 URL 似乎為靜態檔案 (,則會自動略過路由,例如,如果副檔名為) 。 |
MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object) |
設定路由,如果要求的 URL 似乎為靜態檔案 (,則會自動略過路由,例如,如果副檔名為) 。 |
MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object)
設定路由,如果要求的 URL 似乎為靜態檔案 (,則會自動略過路由,例如,如果副檔名為) 。
public static void MapSpaFallbackRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, object defaults, object constraints = default, object dataTokens = default);
static member MapSpaFallbackRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * obj * obj * obj -> unit
<Extension()>
Public Sub MapSpaFallbackRoute (routeBuilder As IRouteBuilder, name As String, defaults As Object, Optional constraints As Object = Nothing, Optional dataTokens As Object = Nothing)
參數
- routeBuilder
- IRouteBuilder
- name
- String
路由名稱。
- defaults
- Object
預設路由參數。
- constraints
- Object
路由條件約束。
- dataTokens
- Object
路由資料權杖。
適用於
MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object)
設定路由,如果要求的 URL 似乎為靜態檔案 (,則會自動略過路由,例如,如果副檔名為) 。
public static void MapSpaFallbackRoute (this Microsoft.AspNetCore.Routing.IRouteBuilder routeBuilder, string name, string templatePrefix, object defaults, object constraints = default, object dataTokens = default);
static member MapSpaFallbackRoute : Microsoft.AspNetCore.Routing.IRouteBuilder * string * string * obj * obj * obj -> unit
<Extension()>
Public Sub MapSpaFallbackRoute (routeBuilder As IRouteBuilder, name As String, templatePrefix As String, defaults As Object, Optional constraints As Object = Nothing, Optional dataTokens As Object = Nothing)
參數
- routeBuilder
- IRouteBuilder
- name
- String
路由名稱。
- templatePrefix
- String
範本前置詞。
- defaults
- Object
預設路由參數。
- constraints
- Object
路由條件約束。
- dataTokens
- Object
路由資料權杖。