GC.CancelFullGCNotification Method ()

 

Cancels the registration of a garbage collection notification.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

[<SecurityCriticalAttribute>]
static member CancelFullGCNotification : unit -> unit

Exception Condition
InvalidOperationException

This member is not available when concurrent garbage collection is enabled. See the <gcConcurrent> runtime setting for information about how to disable concurrent garbage collection.

This method cancels a garbage collection notification that was registered by using the RegisterForFullGCNotification method. You do not have to call this method before adjusting threshold parameter values in subsequent calls to the RegisterForFullGCNotification method.

The following example cancels a garbage collection registration. This example is part of a larger example provided for the Garbage Collection Notifications topic.

No code example is currently available or this language may not be supported.

LinkDemand

for full trust for the immediate caller. This member cannot be used by partially trusted code.

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

.NET Framework
Available since 2.0
Return to top
Show: