Udostępnij za pośrednictwem


ServiceHealthElement.HttpGetEnabled Właściwość

Definicja

Pobiera lub ustawia wartość, która kontroluje, czy usługa publikuje informacje o kondycji pod adresem określonym przez HttpGetUrl atrybut.

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

Wartość właściwości

Boolean

trueDo publikowania informacji o kondycji pod adresem określonym przez HttpGetUrl atrybut; w przeciwnym razie . false

Atrybuty

Uwagi

Właściwość HttpGetEnabled odpowiada wartości HttpGetEnabled atrybutu <serviceHealth> elementu. Jeśli atrybut nie jest zdefiniowany w pliku konfiguracji, jego wartość domyślna to true . Właściwość definiuje wartość właściwości ServiceHealthBehavior.HttpGetEnabled.

Dotyczy