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
category
Type: System.StringThe category name.
instance
Type: System.StringThe instance name
See also
Reference
SPDiagnosticsPerformanceCounterProvider class