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, CounterCreationData[], String)

Registers the extensible performance category with the system

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

Parameters

categoryName
performance category name
categoryHelp
description message for the category
counterData
collection of CounterCreationData specifying the counters to be created
machineName
machine in which to register the counter.

See Also

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