PerformanceCounterInstanceLifetime 枚举

定义

指定性能计数器实例的生存期。Specifies the lifetime of a performance counter instance.

public enum class PerformanceCounterInstanceLifetime
public enum PerformanceCounterInstanceLifetime
type PerformanceCounterInstanceLifetime = 
Public Enum PerformanceCounterInstanceLifetime
继承
PerformanceCounterInstanceLifetime

字段

Global 0

在没有计数器使用进程类别时,移除该性能计数器实例。Remove the performance counter instance when no counters are using the process category.

Process 1

关闭进程时移除该性能计数器实例。Remove the performance counter instance when the process is closed.

注解

默认行为是全局的, 它指定在没有计数器使用进程类别时删除性能计数器实例。The default behavior is Global, which specifies the removal of the performance counter instance when no counters are using the process category.

适用于