PerformanceCounterInstanceLifetime Enumeration
TOC
Collapse the table of content
Expand the table of content

PerformanceCounterInstanceLifetime Enumeration

 

Specifies the lifetime of a performance counter instance.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public enum PerformanceCounterInstanceLifetime

Member nameDescription
Global

Remove the performance counter instance when no counters are using the process category.

Process

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.

System_CAPS_noteNote

If the CategoryType property is SingleInstance, the InstanceLifetime value for the performance counter must be Global.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft