DatabaseErrorPageExtensions.UseDatabaseErrorPage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseDatabaseErrorPage(IApplicationBuilder) |
已淘汰.
從可使用 Entity Framework 移轉解析的管線擷取同步和非同步資料庫相關例外狀況。 發生這些例外狀況時,系統會產生具解決該問題之可能動作詳細資料的 HTML 回應。 |
UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions) |
已淘汰.
從可使用 Entity Framework 移轉解析的管線擷取同步和非同步資料庫相關例外狀況。 發生這些例外狀況時,系統會產生具解決該問題之可能動作詳細資料的 HTML 回應。 |
UseDatabaseErrorPage(IApplicationBuilder)
警告
This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.
從可使用 Entity Framework 移轉解析的管線擷取同步和非同步資料庫相關例外狀況。 發生這些例外狀況時,系統會產生具解決該問題之可能動作詳細資料的 HTML 回應。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDatabaseErrorPage(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDatabaseErrorPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
[System.Obsolete("This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.")]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDatabaseErrorPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseDatabaseErrorPage : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.")>]
static member UseDatabaseErrorPage : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDatabaseErrorPage (app As IApplicationBuilder) As IApplicationBuilder
參數
IApplicationBuilder要註冊中介軟體的 。
傳回
相同的 IApplicationBuilder 實例,以便鏈結多個呼叫。
- 屬性
適用於
UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions)
警告
This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.
從可使用 Entity Framework 移轉解析的管線擷取同步和非同步資料庫相關例外狀況。 發生這些例外狀況時,系統會產生具解決該問題之可能動作詳細資料的 HTML 回應。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Builder::IApplicationBuilder ^ UseDatabaseErrorPage(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Builder::DatabaseErrorPageOptions ^ options);
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDatabaseErrorPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DatabaseErrorPageOptions options);
[System.Obsolete("This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.")]
public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseDatabaseErrorPage (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Builder.DatabaseErrorPageOptions options);
static member UseDatabaseErrorPage : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DatabaseErrorPageOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
[<System.Obsolete("This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.")>]
static member UseDatabaseErrorPage : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Builder.DatabaseErrorPageOptions -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseDatabaseErrorPage (app As IApplicationBuilder, options As DatabaseErrorPageOptions) As IApplicationBuilder
參數
IApplicationBuilder要註冊中介軟體的 。
- options
- DatabaseErrorPageOptions
, DatabaseErrorPageOptions 指定中介軟體的選項。
傳回
相同的 IApplicationBuilder 實例,以便鏈結多個呼叫。
- 屬性