The default behavior is PerformanceCounterInstanceLifetime.Global, which specifies the removal of the performance counter instance when no counters are using the process category.
If the PerformanceCounterCategory.CategoryType property is PerformanceCounterCategoryType.SingleInstance, the PerformanceCounter.InstanceLifetime value for the performance counter must be PerformanceCounterInstanceLifetime.Global.
Member Name | Description |
---|---|
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. |