2 // System.Diagnostics.CounterCreationData.cs
5 // Jonathan Pryor (jonpryor@vt.edu)
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
9 // (C) 2003 Andreas Nahr
13 using System.ComponentModel;
15 namespace System.Diagnostics {
18 [TypeConverter ("System.Diagnostics.Design.CounterCreationDataConverter, " + Consts.AssemblySystem_Design)]
19 public class CounterCreationData
24 private PerformanceCounterType type;
26 public CounterCreationData ()
30 public CounterCreationData (string counterName,
32 PerformanceCounterType counterType)
40 [MonitoringDescription ("Description of this counter.")]
41 public string CounterHelp {
47 [MonitoringDescription ("Name of this counter.")]
48 [TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
49 public string CounterName
55 // may throw InvalidEnumArgumentException
56 [DefaultValue (typeof (PerformanceCounterType), "NumberOfItems32")]
57 [MonitoringDescription ("Type of this counter.")]
58 public PerformanceCounterType CounterType {