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!

PerformanceCounterCategory.Exists (String, String)

Returns true if the category is registered in the machine.

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

Parameters

categoryName
performance category to look for
machineName
the machine to look on

Return Value

true if the category is registered, false otherwise.

See Also

PerformanceCounterCategory Class | PerformanceCounterCategory Members | System.Diagnostics Namespace | PerformanceCounterCategory.Exists Overload List