CounterCreationData.cs 870 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // System.Diagnostics.CounterCreationData.cs
  3. //
  4. // Authors:
  5. // Jonathan Pryor ([email protected])
  6. //
  7. // (C) 2002
  8. //
  9. using System;
  10. using System.Diagnostics;
  11. namespace System.Diagnostics {
  12. [Serializable]
  13. public class CounterCreationData {
  14. private string help;
  15. private string name;
  16. private PerformanceCounterType type;
  17. public CounterCreationData ()
  18. {
  19. }
  20. public CounterCreationData (string counterName,
  21. string counterHelp,
  22. PerformanceCounterType counterType)
  23. {
  24. name = counterName;
  25. help = counterHelp;
  26. type = counterType;
  27. }
  28. public string CounterHelp {
  29. get {return help;}
  30. set {help = value;}
  31. }
  32. public string CounterName {
  33. get {return name;}
  34. set {name = value;}
  35. }
  36. // may throw InvalidEnumArgumentException
  37. public PerformanceCounterType CounterType {
  38. get {return type;}
  39. set {type = value;}
  40. }
  41. }
  42. }