| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- //
- // System.Diagnostics.CounterCreationData.cs
- //
- // Authors:
- // Jonathan Pryor ([email protected])
- //
- // (C) 2002
- //
- using System;
- using System.Diagnostics;
- namespace System.Diagnostics {
- [Serializable]
- public class CounterCreationData {
- private string help;
- private string name;
- private PerformanceCounterType type;
- public CounterCreationData ()
- {
- }
- public CounterCreationData (string counterName,
- string counterHelp,
- PerformanceCounterType counterType)
- {
- name = counterName;
- help = counterHelp;
- type = counterType;
- }
- public string CounterHelp {
- get {return help;}
- set {help = value;}
- }
- public string CounterName {
- get {return name;}
- set {name = value;}
- }
- // may throw InvalidEnumArgumentException
- public PerformanceCounterType CounterType {
- get {return type;}
- set {type = value;}
- }
- }
- }
|