Bagikan melalui


CommonHealthChecksExtensions.ReportUnhealthy Metode

Definisi

Mengatur pemeriksaan kesehatan manual untuk mengembalikan status tidak sehat dan alasan terkait.

public:
[System::Runtime::CompilerServices::Extension]
 static void ReportUnhealthy(Microsoft::Extensions::Diagnostics::HealthChecks::IManualHealthCheck ^ manualHealthCheck, System::String ^ reason);
public static void ReportUnhealthy (this Microsoft.Extensions.Diagnostics.HealthChecks.IManualHealthCheck manualHealthCheck, string reason);
static member ReportUnhealthy : Microsoft.Extensions.Diagnostics.HealthChecks.IManualHealthCheck * string -> unit
<Extension()>
Public Sub ReportUnhealthy (manualHealthCheck As IManualHealthCheck, reason As String)

Parameter

reason
String

Alasan mengapa pemeriksaan kesehatan tidak sehat.

Pengecualian

manualHealthCheckadalah null.

Berlaku untuk