Share via


PerformanceCountersElement.Enabled 属性

定义

获取或设置是否启用性能计数器。

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

属性值

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

属性

注解

此属性的默认值为 false

适用于

另请参阅