.NET Framework Class Library
GC..::.Collect Method

Forces garbage collection.

Overload List

  NameDescription
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCollect()()()Forces an immediate garbage collection of all generations.
Public methodStatic memberCollect(Int32)Forces an immediate garbage collection from generation zero through a specified generation.
Public methodStatic memberCollect(Int32, GCCollectionMode)Forces a garbage collection from generation zero through a specified generation, at a time specified by a GCCollectionMode value.
Top
See Also

Reference

Tags :


Page view tracker