The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
GCCollectionMode Enumeration
.NET Framework (current version)
Specifies the behavior for a forced garbage collection.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| Default | The default setting for this enumeration, which is currently Forced. | |
| Forced | Forces the garbage collection to occur immediately. | |
| Optimized | Allows the garbage collector to determine whether the current time is optimal to reclaim objects. |
Use the GC::Collect method overload to specify the GCCollectionMode value.
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Show: