Share via


SPDiagnosticsPerformanceCounterProvider.AddCounter method (String, String)

Add performance counter to the category.

Namespace:  Microsoft.SharePoint.Diagnostics
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overridable Sub AddCounter ( _
    category As String, _
    counter As String _
)
'Usage
Dim instance As SPDiagnosticsPerformanceCounterProvider
Dim category As String
Dim counter As String

instance.AddCounter(category, counter)
public virtual void AddCounter(
    string category,
    string counter
)

Parameters

Remarks

This should be called when adding a single instance counter.

See also

Reference

SPDiagnosticsPerformanceCounterProvider class

SPDiagnosticsPerformanceCounterProvider members

AddCounter overload

Microsoft.SharePoint.Diagnostics namespace