Share via


DiagnosticSection.PerformanceCountersEnabled 属性

定义

获取或设置一个布尔值,该值指示是否启用用于诊断目的的性能计数器。

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

属性值

如果启用性能计数器,则为 true;否则为 false

属性

适用于