共用方式為


ExceptionHandlerOptions.ExceptionHandler 屬性

定義

RequestDelegate 處理例外狀況的 。 如果未明確提供此專案,則預設會使用後續的中介軟體管線。

public:
 property Microsoft::AspNetCore::Http::RequestDelegate ^ ExceptionHandler { Microsoft::AspNetCore::Http::RequestDelegate ^ get(); void set(Microsoft::AspNetCore::Http::RequestDelegate ^ value); };
public Microsoft.AspNetCore.Http.RequestDelegate ExceptionHandler { get; set; }
public Microsoft.AspNetCore.Http.RequestDelegate? ExceptionHandler { get; set; }
member this.ExceptionHandler : Microsoft.AspNetCore.Http.RequestDelegate with get, set
Public Property ExceptionHandler As RequestDelegate

屬性值

適用於