GC.CancelFullGCNotification 메서드

정의

가비지 컬렉션 알림의 등록을 취소합니다.

public:
 static void CancelFullGCNotification();
public static void CancelFullGCNotification ();
[System.Security.SecurityCritical]
public static void CancelFullGCNotification ();
static member CancelFullGCNotification : unit -> unit
[<System.Security.SecurityCritical>]
static member CancelFullGCNotification : unit -> unit
Public Shared Sub CancelFullGCNotification ()
특성

예외

동시 가비지 컬렉션이 사용되는 경우 이 멤버를 사용할 수 없습니다. 동시 가비지 수집을 사용하지 않도록 설정하는 방법에 대한 자세한 내용은 <gcConcurrent> 런타임 설정을 참조하세요.

예제

다음 예제에서는 가비지 수집 등록을 취소합니다. 이 예제는 가 비지 수집 알림 토픽에 제공된 더 큰 예제의 일부입니다.

finalExit = true;
checkForNotify = false;
GC::CancelFullGCNotification();
finalExit = true;
checkForNotify = false;
GC.CancelFullGCNotification();
finalExit <- true
checkForNotify <- false
GC.CancelFullGCNotification()
finalExit = True
checkForNotify = False
GC.CancelFullGCNotification()

설명

이 메서드는 메서드를 사용하여 등록된 가비지 수집 알림을 취소합니다 RegisterForFullGCNotification . 메서드에 대한 후속 호출에서 임계값 매개 변수 값을 조정하기 전에 이 메서드를 호출할 RegisterForFullGCNotification 필요가 없습니다.

적용 대상

추가 정보