2 // System.Diagnostics.PerformanceCounterCategory.cs
5 // Jonathan Pryor (jonpryor@vt.edu)
11 using System.Diagnostics;
13 namespace System.Diagnostics
16 public sealed class PerformanceCounterCategory
18 private string categoryName;
19 private string machineName;
21 public PerformanceCounterCategory ()
26 // may throw ArgumentException (""), ArgumentNullException
27 public PerformanceCounterCategory (string categoryName)
28 : this (categoryName, ".")
32 // may throw ArgumentException (""), ArgumentNullException
34 public PerformanceCounterCategory (string categoryName,
37 // TODO checks and whatever else is needed
38 this.categoryName = categoryName;
39 this.machineName = machineName;
40 throw new NotImplementedException ();
43 // may throw InvalidOperationException, Win32Exception
45 public string CategoryHelp {
46 get {throw new NotImplementedException ();}
49 // may throw ArgumentException (""), ArgumentNullException
51 public string CategoryName {
52 get {return categoryName;}
54 // TODO needs validity checks
59 // may throw ArgumentException
61 public string MachineName {
62 get {return machineName;}
64 // TODO needs validity checks
69 // may throw ArgumentNullException, InvalidOperationException
70 // (categoryName isn't set), Win32Exception
72 public bool CounterExists (string counterName)
74 throw new NotImplementedException ();
77 // may throw ArgumentNullException, InvalidOperationException
78 // (categoryName is ""), Win32Exception
80 public static bool CounterExists (string counterName,
83 throw new NotImplementedException ();
86 // may throw ArgumentNullException, InvalidOperationException
87 // (categoryName is "", machine name is bad), Win32Exception
89 public static bool CounterExists (string counterName,
93 throw new NotImplementedException ();
97 public static PerformanceCounterCategory Create (
100 CounterCreationDataCollection counterData)
102 throw new NotImplementedException ();
106 public static PerformanceCounterCategory Create (
112 throw new NotImplementedException ();
116 public static void Delete (string categoryName)
118 throw new NotImplementedException ();
122 public static bool Exists (string categoryName)
124 throw new NotImplementedException ();
128 public static bool Exists (string categoryName,
131 throw new NotImplementedException ();
135 public static PerformanceCounterCategory[] GetCategories ()
137 throw new NotImplementedException ();
141 public static PerformanceCounterCategory[] GetCategories (
144 throw new NotImplementedException ();
148 public PerformanceCounter[] GetCounters ()
150 throw new NotImplementedException ();
154 public PerformanceCounter[] GetCounters (string instanceName)
156 throw new NotImplementedException ();
160 public string[] GetInstanceNames ()
162 throw new NotImplementedException ();
166 public bool InstanceExists (string instanceName)
168 throw new NotImplementedException ();
172 public static bool InstanceExists (string instanceName,
175 throw new NotImplementedException ();
179 public static bool InstanceExists (string instanceName,
183 throw new NotImplementedException ();
187 public InstanceDataCollectionCollection ReadCategory ()
189 throw new NotImplementedException ();