Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
System
GC Class
GC Methods
Collect Method
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
GC.Collect Method

Forces garbage collection.

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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker