Share via


SPDiagnosticsPerformanceCounterProvider.AddInstance method (String, String, String)

Add a performance counter by specifying category, counter, and instance.

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

Syntax

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

instance.AddInstance(category, counter, _
    instance)
public virtual void AddInstance(
    string category,
    string counter,
    string instance
)

Parameters

Remarks

If the category or counter doesn't exist, they will be created automatically.

See also

Reference

SPDiagnosticsPerformanceCounterProvider class

SPDiagnosticsPerformanceCounterProvider members

AddInstance overload

Microsoft.SharePoint.Diagnostics namespace