共用方式為


DeveloperExceptionPageExtensions.UseDeveloperExceptionPage 方法

定義

多載

UseDeveloperExceptionPage(IApplicationBuilder)

從管線擷取同步和非同步 Exception 實例,並產生 HTML 錯誤回應。

UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions)

從管線擷取同步和非同步 Exception 實例,並產生 HTML 錯誤回應。

UseDeveloperExceptionPage(IApplicationBuilder)

來源:
DeveloperExceptionPageExtensions.cs
來源:
DeveloperExceptionPageExtensions.cs
來源:
DeveloperExceptionPageExtensions.cs

從管線擷取同步和非同步 Exception 實例,並產生 HTML 錯誤回應。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDeveloperExceptionPage(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDeveloperExceptionPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDeveloperExceptionPage : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDeveloperExceptionPage (app As IApplicationBuilder) As IApplicationBuilder

參數

傳回

作業完成後的 app 參考。

備註

這應該只在開發環境中啟用。

適用於

UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions)

來源:
DeveloperExceptionPageExtensions.cs
來源:
DeveloperExceptionPageExtensions.cs
來源:
DeveloperExceptionPageExtensions.cs

從管線擷取同步和非同步 Exception 實例,並產生 HTML 錯誤回應。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDeveloperExceptionPage(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::DeveloperExceptionPageOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDeveloperExceptionPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions options);
static member UseDeveloperExceptionPage : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DeveloperExceptionPageOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDeveloperExceptionPage (app As IApplicationBuilder, options As DeveloperExceptionPageOptions) As IApplicationBuilder

參數

options
DeveloperExceptionPageOptions

DeveloperExceptionPageOptions 指定中介軟體的選項。

傳回

作業完成後的 app 參考。

備註

這應該只在開發環境中啟用。

適用於