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

Note: This enumeration is new in the .NET Framework version 2.0.

Specifies the lifetime of a performance counter instance.

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

public enum PerformanceCounterInstanceLifetime
public enum PerformanceCounterInstanceLifetime
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 performance CounterType property is SingleInstance, the InstanceLifetime value for the performance counter must be Global.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft