Share via


SPGeneralPerformanceCategoryDefinition.ShouldMonitorInstance method

Directly compare the instance name. The # suffix of duplicate instance will be removed.

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

Syntax

'Declaration
Public Overrides Function ShouldMonitorInstance ( _
    instanceName As String _
) As Boolean
'Usage
Dim instance As SPGeneralPerformanceCategoryDefinition
Dim instanceName As String
Dim returnValue As Boolean

returnValue = instance.ShouldMonitorInstance(instanceName)
public override bool ShouldMonitorInstance(
    string instanceName
)

Parameters

Return value

Type: System.Boolean
Returns Boolean.

See also

Reference

SPGeneralPerformanceCategoryDefinition class

SPGeneralPerformanceCategoryDefinition members

Microsoft.SharePoint.Diagnostics namespace