SpaRouteExtensions.MapSpaFallbackRoute 方法

定义

重载

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

配置一个路由,如果请求的 URL 显示为静态文件 (例如,如果其文件扩展名) ,则会自动绕过该路由。

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

配置一个路由,如果请求的 URL 显示为静态文件 (例如,如果其文件扩展名) ,则会自动绕过该路由。

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

Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
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)

Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
SpaRouteExtensions.cs
Source:
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

路由数据令牌。

适用于