ServiceHealthElement.HealthDetailsEnabled 屬性

定義

取得或設定值,這個值會控制是否允許服務在健全狀況頁面中顯示服務詳細資料及資訊。

public:
 property bool HealthDetailsEnabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("healthDetailsEnabled", DefaultValue=true)]
public bool HealthDetailsEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("healthDetailsEnabled", DefaultValue=true)>]
member this.HealthDetailsEnabled : bool with get, set
Public Property HealthDetailsEnabled As Boolean

屬性值

true 如果健康情況端點應該傳回服務詳細資料,則為 ,如果 false 回應應該不包含任何內容,則為 。 其預設值為 true

屬性

備註

屬性 HealthDetailsEnabled 會對應至 HealthDetailsEnabled 專案的 屬性值 <serviceHealth> 。 如果屬性未定義于組態檔中,其預設值為 true 。 它會定義 ServiceHealthBehavior.HealthDetailsEnabled 屬性的值。

適用於