Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

GC.Collect Method

Forces garbage collection.

Name Description
GC.Collect () Forces an immediate garbage collection of all generations.

Supported by the .NET Compact Framework.

GC.Collect (Int32) Forces an immediate garbage collection from generation zero through a specified generation.

Community Additions

ADD
Show:
© 2015 Microsoft