diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2007-08-06 11:48:23 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2007-08-06 11:48:23 +0400 |
commit | 3f3ee2666cba6c82e960ae825dbab75ff27aa483 (patch) | |
tree | 3cfa625031c37c15b80adcee3bf960b44a80b353 /mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs | |
parent | 8195433dd71ea48a8b41970dd56e7a1fd8c2da07 (diff) |
2007-08-06 Atsushi Enomoto <atsushi@ximian.com>
* PerformanceCounterCategory.cs PerformanceCounter.cs :
added missing 2.0 stuff (unimplemented, where things are anyways
unimplemented in 1.x layer).
svn path=/trunk/mcs/; revision=83523
Diffstat (limited to 'mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs')
-rw-r--r-- | mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs b/mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs index 6a5e13c11c0..310d97729f1 100644 --- a/mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs +++ b/mcs/class/System/System.Diagnostics/PerformanceCounterCategory.cs @@ -37,6 +37,9 @@ namespace System.Diagnostics { private string categoryName; private string machineName; +#if NET_2_0 + private PerformanceCounterCategoryType type; +#endif public PerformanceCounterCategory () : this ("", ".") @@ -86,6 +89,13 @@ namespace System.Diagnostics } } +#if NET_2_0 + [MonoTODO] + public PerformanceCounterCategoryType CategoryType { + get { return type; } + } +#endif + // may throw ArgumentNullException, InvalidOperationException // (categoryName isn't set), Win32Exception [MonoTODO] @@ -114,9 +124,36 @@ namespace System.Diagnostics } [MonoTODO] +#if NET_2_0 + [Obsolete ("Use another overload that uses PerformanceCounterCategoryType instead")] +#endif + public static PerformanceCounterCategory Create ( + string categoryName, + string categoryHelp, + CounterCreationDataCollection counterData) + { + throw new NotImplementedException (); + } + + [MonoTODO] +#if NET_2_0 + [Obsolete ("Use another overload that uses PerformanceCounterCategoryType instead")] +#endif + public static PerformanceCounterCategory Create ( + string categoryName, + string categoryHelp, + string counterName, + string counterHelp) + { + throw new NotImplementedException (); + } + +#if NET_2_0 + [MonoTODO] public static PerformanceCounterCategory Create ( string categoryName, string categoryHelp, + PerformanceCounterCategoryType categoryType, CounterCreationDataCollection counterData) { throw new NotImplementedException (); @@ -126,11 +163,13 @@ namespace System.Diagnostics public static PerformanceCounterCategory Create ( string categoryName, string categoryHelp, + PerformanceCounterCategoryType categoryType, string counterName, string counterHelp) { throw new NotImplementedException (); } +#endif [MonoTODO] public static void Delete (string categoryName) |