NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PerformanceCounter.CreateCategory (String, String, String, String, String)

Registers one extensible performance category of type NumberOfItems32 with the system

[Visual Basic]
Overloads Public Shared Function CreateCategory( _
   ByVal categoryName As String, _
   ByVal categoryHelp As String, _
   ByVal counterName As String, _
   ByVal counterHelp As String, _
   ByVal machineName As String _
) As PerformanceCounterCategory
[C#]
public static PerformanceCounterCategory CreateCategory(
   string categoryName,
   string categoryHelp,
   string counterName,
   string counterHelp,
   string machineName
);
[C++]
public: static PerformanceCounterCategory* CreateCategory(
   String* categoryName,
   String* categoryHelp,
   String* counterName,
   String* counterHelp,
   String* machineName
);
[JScript]
public static function CreateCategory(
   categoryName : String,
   categoryHelp : String,
   counterName : String,
   counterHelp : String,
   machineName : String
) : PerformanceCounterCategory;

Parameters

categoryName
performance category name
categoryHelp
description message for the category
counterName
name of the performance counter
counterHelp
description message for the counter
machineName
machine in which to register the counter.

See Also

PerformanceCounter Class | PerformanceCounter Members | System.Diagnostics Namespace | PerformanceCounter.CreateCategory Overload List