StatusCodePagesExtensions.UseStatusCodePagesWithReExecute 方法

定义

将 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

返回

适用于