Share via


SPPerformanceCategoryDefinition.ContainsCounter method

Check if a counter exists in the category

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

Syntax

'Declaration
Public Function ContainsCounter ( _
    counter As String _
) As Boolean
'Usage
Dim instance As SPPerformanceCategoryDefinition
Dim counter As String
Dim returnValue As Boolean

returnValue = instance.ContainsCounter(counter)
public bool ContainsCounter(
    string counter
)

Parameters

Return value

Type: System.Boolean
Returns Boolean.

See also

Reference

SPPerformanceCategoryDefinition class

SPPerformanceCategoryDefinition members

Microsoft.SharePoint.Diagnostics namespace