Click or drag to resize

PerformanceMonitorAddCounter Method (String, String, String, String)

Adds a PerformanceCounter to be monitored.

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

Parameters

categoryName
Type: SystemString
The name of the performance counter category (performance object) with which this performance counter is associated.
counterName
Type: SystemString
The name of the performance counter.
instanceName
Type: SystemString
The name of the performance counter category instance, or an empty string (""), if the category contains a single instance.
aliasName
Type: SystemString
The alias name for the PerformanceCounter object.
See Also