Share via


PerformanceCounter.InstanceLifetime 속성

정의

프로세스의 수명을 가져오거나 설정합니다.

public:
 property System::Diagnostics::PerformanceCounterInstanceLifetime InstanceLifetime { System::Diagnostics::PerformanceCounterInstanceLifetime get(); void set(System::Diagnostics::PerformanceCounterInstanceLifetime value); };
public System.Diagnostics.PerformanceCounterInstanceLifetime InstanceLifetime { get; set; }
member this.InstanceLifetime : System.Diagnostics.PerformanceCounterInstanceLifetime with get, set
Public Property InstanceLifetime As PerformanceCounterInstanceLifetime

속성 값

PerformanceCounterInstanceLifetime 값 중 하나입니다. 기본값은 Global입니다.

예외

값 집합이 PerformanceCounterInstanceLifetime 열거형의 멤버가 아닌 경우

InstanceLifetime가 초기화된 후에 PerformanceCounter이 설정된 경우

설명

.NET Framework 버전 1.0 또는 1.1을 사용하여 성능 카운터 범주를 만드는 경우 전역 공유 메모리를 사용하며 의 값 InstanceLifetime 은 이어야 Global합니다. 버전 1.0 또는 1.1의.NET Framework에서 실행 중인 애플리케이션 범주를 사용 하지 않으면 삭제 하 고 범주를 다시 만듭니다.

참고

속성 값이 CounterTypeSingleInstance면 성능 카운터의 값은 InstanceLifetime 이어야 Global합니다.

적용 대상