Export (0) Print
Expand All
5 out of 5 rated this helpful - Rate this topic

GC.Collect Method

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.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Collect() Forces an immediate garbage collection of all generations.
Public method Static member Collect(Int32) Forces an immediate garbage collection from generation zero through a specified generation.
Public method Static member Collect(Int32, GCCollectionMode) Forces a garbage collection from generation zero through a specified generation, at a time specified by a GCCollectionMode value.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.