GC::CancelFullGCNotification Method ()
Cancels the registration of a garbage collection notification.
Assembly: mscorlib (in mscorlib.dll)
| 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.
for full trust for the immediate caller. This member cannot be used by partially trusted code.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 2.0