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.CounterExists

Returns true if the counter is registered for this category

[Visual Basic]
Public Function CounterExists( _
   ByVal counterName As String _
) As Boolean
[C#]
public bool CounterExists(
   string counterName
);
[C++]
public: bool CounterExists(
   String* counterName
);
[JScript]
public function CounterExists(
   counterName : String
) : Boolean;

Parameters

counterName
counter to look for

Return Value

true if the counter is registered, false otherwise

See Also

PerformanceCounterCategory Class | PerformanceCounterCategory Members | System.Diagnostics Namespace