Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
category
Type: System.StringThe category name.
counter
Type: System.StringThe counter name.
Remarks
This should be called when adding a single instance counter.
See Also
Reference
SPDiagnosticsPerformanceCounterProvider Class