Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
System Namespace
GC Class
GC Methods
Collect Method

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

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

Forces garbage collection.

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