共用方式為


DeveloperExceptionPageMiddleware 類別

定義

從管線擷取同步和非同步例外狀況,並產生錯誤回應。

public ref class DeveloperExceptionPageMiddleware
public class DeveloperExceptionPageMiddleware
type DeveloperExceptionPageMiddleware = class
Public Class DeveloperExceptionPageMiddleware
繼承
DeveloperExceptionPageMiddleware

建構函式

DeveloperExceptionPageMiddleware(RequestDelegate, IOptions<DeveloperExceptionPageOptions>, ILoggerFactory, IHostingEnvironment, DiagnosticSource)

初始化 DeveloperExceptionPageMiddleware 類別的新執行個體

DeveloperExceptionPageMiddleware(RequestDelegate, IOptions<DeveloperExceptionPageOptions>, ILoggerFactory, IWebHostEnvironment, DiagnosticSource, IEnumerable<IDeveloperPageExceptionFilter>)

初始化 DeveloperExceptionPageMiddleware 類別的新執行個體

方法

Invoke(HttpContext)

處理個別要求。

適用於