PerformanceCounterInstanceLifetime 列挙型

定義

パフォーマンス カウンター インスタンスの有効期間を指定します。

public enum class PerformanceCounterInstanceLifetime
public enum PerformanceCounterInstanceLifetime
type PerformanceCounterInstanceLifetime = 
Public Enum PerformanceCounterInstanceLifetime
継承
PerformanceCounterInstanceLifetime

フィールド

Global 0

プロセス カテゴリを使用しているカウンターが存在しない場合は、パフォーマンス カウンター インスタンスを削除します。

Process 1

プロセスが終了している場合は、パフォーマンス カウンター インスタンスを削除します。

注釈

既定の動作は Global で、カウンターがプロセス カテゴリを使用していない場合のパフォーマンス カウンター インスタンスの削除を指定します。

注意

プロパティが指定されているPerformanceCounterCategory.CategoryType場合、パフォーマンス カウンターGlobalPerformanceCounter.InstanceLifetime値は PerformanceCounterCategoryType.SingleInstance.

適用対象