Click or drag to resize

PerformanceMonitorBaseFindCounter(String) Method

Returns a PerformanceCounter object matching the specified counter name.

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.205-beta+5ef4169f3b1079d8b163dd363614f656bd140924
Syntax
public PerformanceCounter FindCounter(
	string counterName
)
View Source

Parameters

counterName  String
Name of the PerformanceCounter to be retrieved.

Return Value

PerformanceCounter
A PerformanceCounter object if a match is found; otherwise null.
Remarks
First PerformanceCounter with matching name is returned. If same name exists within multiple monitored categories, use FindCounter(String, String) overload instead.
See Also