Gemstone Diagnostics Library
Show/Hide TOC

# PerformanceMonitorBaseAddCounter(String, String, String, String) Method

Adds a PerformanceCounter to be monitored.

## Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.155 -- Release Build+413cde858755f0bb404d155c12c70bc8c002b9e9
C#
View Source Request Example

    public void AddCounter(
    	string categoryName,
    	string counterName,
    	string instanceName,
    	string aliasName
    )

VB
View Source Request Example

    Public Sub AddCounter (
    	categoryName As String,
    	counterName As String,
    	instanceName As String,
    	aliasName As String
    )

C++
View Source Request Example

    public:
    void AddCounter(
    	String^ categoryName,
    	String^ counterName,
    	String^ instanceName,
    	String^ aliasName
    )

JavaScript
View Source Request Example

    function AddCounter(categoryName, counterName, instanceName, aliasName);

#### Parameters

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

## See Also

#### Reference

PerformanceMonitorBase Class
AddCounter Overload
Gemstone.Diagnostics Namespace