共用方式為


HealthReport 建構函式

定義

多載

HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, TimeSpan)

從指定的結果建立新 HealthReport

HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, HealthStatus, TimeSpan)

從指定的結果建立新 HealthReport

HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, TimeSpan)

來源:
HealthReport.cs
來源:
HealthReport.cs

從指定的結果建立新 HealthReport

public:
 HealthReport(System::Collections::Generic::IReadOnlyDictionary<System::String ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReportEntry> ^ entries, TimeSpan totalDuration);
public HealthReport (System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> entries, TimeSpan totalDuration);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport : System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> * TimeSpan -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport
Public Sub New (entries As IReadOnlyDictionary(Of String, HealthReportEntry), totalDuration As TimeSpan)

參數

entries
IReadOnlyDictionary<String,HealthReportEntry>

包含每個健康狀態檢查結果的 IReadOnlyDictionary<TKey,TValue>

totalDuration
TimeSpan

指出健康狀態檢查服務執行所花時間的值。

適用於

HealthReport(IReadOnlyDictionary<String,HealthReportEntry>, HealthStatus, TimeSpan)

來源:
HealthReport.cs
來源:
HealthReport.cs

從指定的結果建立新 HealthReport

public:
 HealthReport(System::Collections::Generic::IReadOnlyDictionary<System::String ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReportEntry> ^ entries, Microsoft::Extensions::Diagnostics::HealthChecks::HealthStatus status, TimeSpan totalDuration);
public HealthReport (System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> entries, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus status, TimeSpan totalDuration);
new Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport : System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Extensions.Diagnostics.HealthChecks.HealthReportEntry> * Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus * TimeSpan -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport
Public Sub New (entries As IReadOnlyDictionary(Of String, HealthReportEntry), status As HealthStatus, totalDuration As TimeSpan)

參數

entries
IReadOnlyDictionary<String,HealthReportEntry>

包含每個健康狀態檢查結果的 IReadOnlyDictionary<TKey,TValue>

status
HealthStatus

HealthStatus 表示所有健康情況檢查的匯總狀態。

totalDuration
TimeSpan

指出健康狀態檢查服務執行所花時間的值。

適用於