mscorlib(4.0.0.0) API with additions
PerformanceCountersElement.cs
2 
4 {
6  public sealed class PerformanceCountersElement : ConfigurationElement
7  {
8  private ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
9 
10  private readonly ConfigurationProperty enabled = new ConfigurationProperty("enabled", typeof(bool), false, ConfigurationPropertyOptions.None);
11 
15  [ConfigurationProperty("enabled", DefaultValue = false)]
16  public bool Enabled
17  {
18  get
19  {
20  return (bool)base[enabled];
21  }
22  set
23  {
24  base[enabled] = value;
25  }
26  }
27 
28  protected internal override ConfigurationPropertyCollection Properties
29  {
30  protected get
31  {
32  return properties;
33  }
34  }
35 
38  {
39  properties.Add(enabled);
40  }
41  }
42 }
PerformanceCountersElement()
Instantiates a T:System.Net.Configuration.PerformanceCountersElement object.
Definition: __Canon.cs:3
Represents the performance counter element in the System.Net configuration file that determines wheth...
bool Enabled
Gets or sets whether performance counters are enabled.