This documentation is archived and is not being maintained.
Visual Studio 2008
Forces garbage collection.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
|Collect()||Forces an immediate garbage collection of all generations.|
|Collect(Int32)||Forces an immediate garbage collection from generation zero through a specified generation.|
|Collect(Int32, GCCollectionMode)||Forces a garbage collection from generation zero through a specified generation, at a time specified by a GCCollectionMode value.|