Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
PerformanceCounterInstanceLifetime Enumeration
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
GlobalRemove the performance counter instance when no counters are using the process category.
ProcessRemove 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.

NoteNote

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft