Bagikan melalui


DatabaseErrorPageExtensions.UseDatabaseErrorPage Metode

Definisi

Overload

UseDatabaseErrorPage(IApplicationBuilder)
Kedaluwarsa.

Menangkap pengecualian terkait database sinkron dan asinkron dari alur yang dapat diselesaikan menggunakan migrasi Kerangka Kerja Entitas. Ketika pengecualian ini terjadi, respons HTML dengan detail kemungkinan tindakan untuk menyelesaikan masalah dihasilkan.

UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions)
Kedaluwarsa.

Menangkap pengecualian terkait database sinkron dan asinkron dari alur yang dapat diselesaikan menggunakan migrasi Kerangka Kerja Entitas. Ketika pengecualian ini terjadi, respons HTML dengan detail kemungkinan tindakan untuk menyelesaikan masalah dihasilkan.

UseDatabaseErrorPage(IApplicationBuilder)

Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs

Perhatian

This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.

Menangkap pengecualian terkait database sinkron dan asinkron dari alur yang dapat diselesaikan menggunakan migrasi Kerangka Kerja Entitas. Ketika pengecualian ini terjadi, respons HTML dengan detail kemungkinan tindakan untuk menyelesaikan masalah dihasilkan.

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

Parameter

app
IApplicationBuilder

IApplicationBuilder untuk mendaftarkan middleware dengan.

Mengembalikan

Instans yang sama IApplicationBuilder sehingga beberapa panggilan dapat dirangkai.

Atribut

Berlaku untuk

UseDatabaseErrorPage(IApplicationBuilder, DatabaseErrorPageOptions)

Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs
Sumber:
DatabaseErrorPageExtensions.cs

Perhatian

This is obsolete and will be removed in a future version. Use DatabaseDeveloperPageExceptionFilter instead, see documentation at https://aka.ms/DatabaseDeveloperPageExceptionFilter.

Menangkap pengecualian terkait database sinkron dan asinkron dari alur yang dapat diselesaikan menggunakan migrasi Kerangka Kerja Entitas. Ketika pengecualian ini terjadi, respons HTML dengan detail kemungkinan tindakan untuk menyelesaikan masalah dihasilkan.

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

Parameter

app
IApplicationBuilder

IApplicationBuilder untuk mendaftarkan middleware dengan.

options
DatabaseErrorPageOptions

DatabaseErrorPageOptions yang menentukan opsi untuk middleware.

Mengembalikan

Instans yang sama IApplicationBuilder sehingga beberapa panggilan dapat dirangkai.

Atribut

Berlaku untuk