AppDomain.MonitoringIsEnabled 속성
정의
현재 프로세스에 애플리케이션 도메인의 CPU 및 메모리 모니터링을 사용할 수 있는지를 나타내는 값을 가져오거나 설정합니다.Gets or sets a value that indicates whether CPU and memory monitoring of application domains is enabled for the current process. 프로세스에 모니터링을 사용할 수 있는 경우 사용하지 못하도록 설정할 수 없습니다.Once monitoring is enabled for a process, it cannot be disabled.
public:
static property bool MonitoringIsEnabled { bool get(); void set(bool value); };
[get: System.Security.SecurityCritical]
[set: System.Security.SecurityCritical]
public static bool MonitoringIsEnabled { get; set; }
member this.MonitoringIsEnabled : bool with get, set
Public Shared Property MonitoringIsEnabled As Boolean
속성 값
모니터링을 사용할 수 있으면 true
이고, 그렇지 않으면 false
입니다.true
if monitoring is enabled; otherwise false
.
- 특성
예외
현재 프로세스가 이 속성에 false
값을 할당하려 했습니다.The current process attempted to assign the value false
to this property.
설명
이렇게 static
속성 (Shared
속성 Visual Basic) CPU 및 메모리 모니터링 프로세스의 모든 애플리케이션 도메인을 제어 합니다.This static
property (Shared
property in Visual Basic) controls CPU and memory monitoring of all the application domains in the process.
이 속성을 false
로 설정 하려고 하면 속성의 현재 값이 false
되더라도 ArgumentException 예외가 throw 됩니다.If you attempt to set this property to false
, a ArgumentException exception is thrown, even if the current value of the property is false
.
모니터링이 활성화 되 면 사용할 수는 MonitoringSurvivedMemorySize, MonitoringSurvivedProcessMemorySize를 MonitoringTotalAllocatedMemorySize, 및 MonitoringTotalProcessorTime 인스턴스 개별 애플리케이션 도메인의 CPU 및 메모리 사용을 모니터링 하는 속성입니다.Once monitoring is enabled, you can use the MonitoringSurvivedMemorySize, MonitoringSurvivedProcessMemorySize, MonitoringTotalAllocatedMemorySize, and MonitoringTotalProcessorTime instance properties to monitor CPU and memory use of individual application domains.
보안
SecurityCriticalAttribute
직접 실행 호출자에 대 한 완전 신뢰가 필요 합니다.Requires full trust for the immediate caller. 이 멤버는 부분적으로 신뢰할 수 있는 또는 투명 코드에서 사용할 수 없습니다.This member cannot be used by partially trusted or transparent code.