Editar

Compartilhar via


ServiceHealthElement.HealthDetailsEnabled Property

Definition

Gets or sets a value that controls whether the service is allowed to display service details and information in the health page.

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

Property Value

true if the health endpoint should return the service details, or false if the response should contain no content. Its default value is true.

Attributes

Remarks

The HealthDetailsEnabled property corresponds to the value of the HealthDetailsEnabled attribute of a <serviceHealth> element. If the attribute is not defined in a configuration file, its default value is true. It defines the value of the ServiceHealthBehavior.HealthDetailsEnabled property.

Applies to