Share via


SPDiagnosticsPerformanceCounterProvider.AddInstance method (String, String)

Add a performance counter by specifying category and instance.

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

Syntax

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

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

Parameters

See also

Reference

SPDiagnosticsPerformanceCounterProvider class

SPDiagnosticsPerformanceCounterProvider members

AddInstance overload

Microsoft.SharePoint.Diagnostics namespace