Compartilhar via


SPGeneralPerformanceCategoryDefinition Class

General definition for an arbitrary category and its counters. It stores the counter names and instance names for each counter.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.Diagnostics.SPPerformanceCategoryDefinition
      Microsoft.SharePoint.Diagnostics.SPGeneralPerformanceCategoryDefinition

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class SPGeneralPerformanceCategoryDefinition _
    Inherits SPPerformanceCategoryDefinition
'Usage
Dim instance As SPGeneralPerformanceCategoryDefinition
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class SPGeneralPerformanceCategoryDefinition : SPPerformanceCategoryDefinition

Remarks

When the diagnostic providers collecting performance counter under this category a counter will be collected if the counter name is in the definition and the instance name is in the definition. If the counter has no instance and the counter name is in the definition it will be also collected.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPGeneralPerformanceCategoryDefinition Members

Microsoft.SharePoint.Diagnostics Namespace