共用方式為


HealthCheckResult.Healthy 方法

定義

建立代表狀況良好元件的 HealthCheckResult

public static Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult Healthy (string? description = default, System.Collections.Generic.IReadOnlyDictionary<string,object>? data = default);
static member Healthy : string * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckResult
Public Shared Function Healthy (Optional description As String = Nothing, Optional data As IReadOnlyDictionary(Of String, Object) = Nothing) As HealthCheckResult

參數

description
String

可供人員閱讀的已檢查元件狀態描述。 選擇性。

data
IReadOnlyDictionary<String,Object>

描述元件健康狀態的其他索引鍵/值組。 選擇性。

傳回

代表狀況良好元件的 HealthCheckResult

適用於