Click or drag to resize

PerformanceMonitorFindCounter Method (String, String)

Returns a PerformanceCounter object matching the specified counter name.

Namespace:  GSF.Diagnostics
Assembly:  GSF.Core (in GSF.Core.dll) Version: 2.3.436-beta
Syntax
public PerformanceCounter FindCounter(
	string categoryName,
	string counterName
)
Request Example View Source

Parameters

categoryName
Type: SystemString
Category of the PerformanceCounter to be retrieved.
counterName
Type: SystemString
Name of the PerformanceCounter to be retrieved.

Return Value

Type: PerformanceCounter
A PerformanceCounter object if a match is found; otherwise null.
See Also