共用方式為


HealthCheckOptions.ResponseWriter 屬性

定義

取得或設定用來寫入回應的委派。

public:
 property Func<Microsoft::AspNetCore::Http::HttpContext ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^, System::Threading::Tasks::Task ^> ^ ResponseWriter { Func<Microsoft::AspNetCore::Http::HttpContext ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^, System::Threading::Tasks::Task ^> ^ get(); void set(Func<Microsoft::AspNetCore::Http::HttpContext ^, Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^, System::Threading::Tasks::Task ^> ^ value); };
public Func<Microsoft.AspNetCore.Http.HttpContext,Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport,System.Threading.Tasks.Task> ResponseWriter { get; set; }
member this.ResponseWriter : Func<Microsoft.AspNetCore.Http.HttpContext, Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport, System.Threading.Tasks.Task> with get, set
Public Property ResponseWriter As Func(Of HttpContext, HealthReport, Task)

屬性值

備註

預設值是委派,其會以 字串的形式 Status 寫入最小 text/plain 回應。

適用於