ServiceHealthElement.HttpGetEnabled 屬性

定義

取得或設定值,這個值控制服務是否在 HttpGetUrl 屬性指定的位址發佈其健全狀況資訊。

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

屬性值

true 表示在 屬性所 HttpGetUrl 指定的位址發佈健康情況資訊,否則 false 為 。

屬性

備註

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

適用於