ServiceHealthElement.HealthDetailsEnabled 属性
定义
获取或设置可控制是否允许服务在运行状况页面中显示服务详情和信息的值。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=Mono.Cecil.CustomAttributeArgument)]
public bool HealthDetailsEnabled { get; set; }
[<System.Configuration.ConfigurationProperty("healthDetailsEnabled", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.HealthDetailsEnabled : bool with get, set
Public Property HealthDetailsEnabled As Boolean
属性值
true 如果运行状况终结点应返回服务详细信息,则为; false 如果响应中不应包含任何内容,则为。true if the health endpoint should return the service details, or false if the response should contain no content. 默认值为 true。Its default value is true.
- 属性
注解
HealthDetailsEnabled属性与元素的属性的值相对应 HealthDetailsEnabled <serviceHealth> 。The HealthDetailsEnabled property corresponds to the value of the HealthDetailsEnabled attribute of a <serviceHealth> element. 如果未在配置文件中定义该属性,则其默认值为 true 。If the attribute is not defined in a configuration file, its default value is true. 它定义 ServiceHealthBehavior 属性的值。It defines the value of the ServiceHealthBehavior.HealthDetailsEnabled property.