System.Diagnostics.PerformanceCounter.InstanceLifetime Property

Gets or sets the lifetime of a process.

Syntax

[System.ComponentModel.DefaultValue(Mono.Cecil.CustomAttributeArgument)]
[System.MonoTODO]
public PerformanceCounterInstanceLifetime InstanceLifetime { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

If the performance counter category is created with the .NET Framework version 1.0 or 1.1, it uses global shared memory, and the value for PerformanceCounter.InstanceLifetime must be PerformanceCounterInstanceLifetime.Global. If the category is not used by applications running on versions 1.0 or 1.1 of the .NET Framework, delete and recreate the category.

Note:

If the value of the PerformanceCounter.CounterType property is PerformanceCounterCategoryType.SingleInstance, the PerformanceCounter.InstanceLifetime value for the performance counter must be PerformanceCounterInstanceLifetime.Global.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0