Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Pryor <jpryor@novell.com>2002-07-13 22:36:20 +0400
committerJonathan Pryor <jpryor@novell.com>2002-07-13 22:36:20 +0400
commitbce4656698ce8e7afeeb6949e2be8a9cb70ea203 (patch)
tree71547fdad190febeecbb2b59a8d2afe8a61d6d73 /mcs/class/System/System.Diagnostics/CounterCreationData.cs
parentc2ba7bd4d727c89c469a36ab442f41a60f3b97af (diff)
* CounterCreationData.cs: Implemented
* CounterCreationDataCollection.cs: Implemented * CounterSample.cs: Stubbed Out * CounterSampleCalculator.cs: Stubbed Out * InstanceData.cs: Implemented * InstanceDataCollection.cs: Implemented * InstanceDataCollectionCollection.cs: Implemented * MonitoringDescriptionAttribute.cs: Implemented * PerformanceCounter.cs: Stubbed Out * PerformanceCounterCategory.cs: Stubbed Out * PerformanceCounterInstaller.cs: Stubbed Out * PerformanceCounterManager.cs: Stubbed Out * PerformanceCounterPermission.cs: Stubbed Out * PerformanceCounterPermissionAccess.cs: Implemented * PerformanceCounterPermissionAttribute.cs: Stubbed Out * PerformanceCounterPermissionEntry.cs: Stubbed Out * PerformanceCounterPermissionEntryCollection.cs: Implemented * PerformanceCounterType.cs: Implemented svn path=/trunk/mcs/; revision=5770
Diffstat (limited to 'mcs/class/System/System.Diagnostics/CounterCreationData.cs')
-rw-r--r--mcs/class/System/System.Diagnostics/CounterCreationData.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/CounterCreationData.cs b/mcs/class/System/System.Diagnostics/CounterCreationData.cs
new file mode 100644
index 00000000000..d814e012fea
--- /dev/null
+++ b/mcs/class/System/System.Diagnostics/CounterCreationData.cs
@@ -0,0 +1,52 @@
+//
+// System.Diagnostics.CounterCreationData.cs
+//
+// Authors:
+// Jonathan Pryor (jonpryor@vt.edu)
+//
+// (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;}
+ }
+ }
+}
+