PerformanceCounterCategoryType PerformanceCounterCategoryType PerformanceCounterCategoryType PerformanceCounterCategoryType Enum

定义

指示性能计数器类别是否可以有多个实例。Indicates whether the performance counter category can have multiple instances.

public enum class PerformanceCounterCategoryType
public enum PerformanceCounterCategoryType
type PerformanceCounterCategoryType = 
Public Enum PerformanceCounterCategoryType
继承
PerformanceCounterCategoryTypePerformanceCounterCategoryTypePerformanceCounterCategoryTypePerformanceCounterCategoryType

字段

MultiInstance MultiInstance MultiInstance MultiInstance 1

性能计数器类别可以有多个实例。The performance counter category can have multiple instances.

SingleInstance SingleInstance SingleInstance SingleInstance 0

性能计数器类别只能有一个实例。The performance counter category can have only a single instance.

Unknown Unknown Unknown Unknown -1

性能计数器类别的实例功能未知。The instance functionality for the performance counter category is unknown.

注解

有两种类型的性能计数器类别: 单实例和多实例。There are two types of performance counter categories: single-instance and multi-instance. 默认情况下, 在创建一个类别时, 类别为单实例, 并在添加另一个实例时变为多实例。By default, a category is single-instance when it is created and becomes multi-instance when another instance is added. 类别是在设置应用程序时创建的, 实例是在运行时添加的。Categories are created when an application is set up, and instances are added at run time. 在 .NET Framework 版本1.0 和版本1.1 中, 无需知道性能计数器类别是多实例的还是单实例的。In the .NET Framework version 1.0 and version 1.1, it is not necessary to know whether a performance counter category is multi-instance or single-instance. 在 .NET Framework 版本2.0 中, PerformanceCounterCategoryType使用枚举来指示性能计数器是否可以有多个实例。In the .NET Framework version 2.0, the PerformanceCounterCategoryType enumeration is used to indicate whether a performance counter can have multiple instances.

适用于