DeveloperExceptionPageExtensions.UseDeveloperExceptionPage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseDeveloperExceptionPage(IApplicationBuilder) |
從管線擷取同步和非同步 Exception 實例,並產生 HTML 錯誤回應。 |
UseDeveloperExceptionPage(IApplicationBuilder, DeveloperExceptionPageOptions) |
從管線擷取同步和非同步 Exception 實例,並產生 HTML 錯誤回應。 |
UseDeveloperExceptionPage(IApplicationBuilder)
從管線擷取同步和非同步 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)
從管線擷取同步和非同步 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
參考。
備註
這應該只在開發環境中啟用。