共用方式為


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

傳回

適用於