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.CategoryExists (String)

Returns a bool of whether the categoryName is in the system or not.

[Visual Basic]
Overloads Public Shared Function CategoryExists( _
   ByVal categoryName As String _
) As Boolean
[C#]
public static bool CategoryExists(
   string categoryName
);
[C++]
public: static bool CategoryExists(
   String* categoryName
);
[JScript]
public static function CategoryExists(
   categoryName : String
) : Boolean;

Parameters

categoryName
performance category from which to remove a counter

Return Value

true if the categoryName exists, false otherwise

See Also

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