Collect Method
MSDN Home
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
Class Library Reference
System
GC Class
GC Methods
Collect Method
Collect Method ()
Collect Method (Int32)
GC Methods
AddMemoryPressure Method
Collect Method
CollectionCount Method
GetGeneration Method
GetTotalMemory Method
KeepAlive Method
RemoveMemoryPressure Method
ReRegisterForFinalize Method
SuppressFinalize Method
WaitForPendingFinalizers Metho ...
Switch View :
Classic
Lightweight Beta
ScriptFree
Feedback
.NET Framework Class Library
GC.Collect Method
Forces garbage collection.
Overload List
Name
Description
GC.Collect ()
Forces garbage collection of all generations.
Supported by the .NET Compact Framework.
GC.Collect (Int32)
Forces garbage collection from generation zero through a specified generation.
See Also
Reference
GC Class
GC Members
System Namespace
Tags :