StatusCodePagesExtensions.UseStatusCodePagesWithReExecute 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 StatusCodePages 中间件添加到管道。 指定应使用备用路径重新执行请求管道,从而生成响应正文。 此路径可能包含状态代码的“”{0}占位符。
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string queryFormat = default);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseStatusCodePagesWithReExecute (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, string pathFormat, string? queryFormat = default);
static member UseStatusCodePagesWithReExecute : Microsoft.AspNetCore.Builder.IApplicationBuilder * string * string -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseStatusCodePagesWithReExecute (app As IApplicationBuilder, pathFormat As String, Optional queryFormat As String = Nothing) As IApplicationBuilder
参数
- pathFormat
- String
- queryFormat
- String