共用方式為


IHealthChecksBuilder.Add(HealthCheckRegistration) 方法

定義

新增健康狀態檢查的 HealthCheckRegistration

public:
 Microsoft::Extensions::DependencyInjection::IHealthChecksBuilder ^ Add(Microsoft::Extensions::Diagnostics::HealthChecks::HealthCheckRegistration ^ registration);
public Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder Add (Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration registration);
abstract member Add : Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckRegistration -> Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder
Public Function Add (registration As HealthCheckRegistration) As IHealthChecksBuilder

參數

傳回

適用於