共用方式為


SpaRouteExtensions.MapSpaFallbackRoute 方法

定義

多載

MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object)

設定路由,如果要求的 URL 似乎為靜態檔案 (,則會自動略過路由,例如,如果副檔名為) 。

MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object)

設定路由,如果要求的 URL 似乎為靜態檔案 (,則會自動略過路由,例如,如果副檔名為) 。

MapSpaFallbackRoute(IRouteBuilder, String, Object, Object, Object)

來源:
SpaRouteExtensions.cs
來源:
SpaRouteExtensions.cs
來源:
SpaRouteExtensions.cs
來源:
SpaRouteExtensions.cs

設定路由,如果要求的 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

IRouteBuilder

name
String

路由名稱。

defaults
Object

預設路由參數。

constraints
Object

路由條件約束。

dataTokens
Object

路由資料權杖。

適用於

MapSpaFallbackRoute(IRouteBuilder, String, String, Object, Object, Object)

來源:
SpaRouteExtensions.cs
來源:
SpaRouteExtensions.cs
來源:
SpaRouteExtensions.cs
來源:
SpaRouteExtensions.cs

設定路由,如果要求的 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

IRouteBuilder

name
String

路由名稱。

templatePrefix
String

範本前置詞。

defaults
Object

預設路由參數。

constraints
Object

路由條件約束。

dataTokens
Object

路由資料權杖。

適用於