This documentation is archived and is not being maintained.
.NET Framework 3.0
Controls the system garbage collector, a service that automatically reclaims unused memory.
The following tables list the members exposed by the GC type.
|AddMemoryPressure||Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection.|
|Collect||Overloaded. Forces garbage collection.|
|CollectionCount||Returns the number of times garbage collection has occurred for the specified generation of objects.|
|Equals||Overloaded. Determines whether two Object instances are equal. (inherited from Object)|
|GetGeneration||Overloaded. Returns the current generation number of an object.|
|GetHashCode||Serves as a hash function for a particular type. (inherited from Object)|
|GetTotalMemory||Retrieves the number of bytes currently thought to be allocated. A parameter indicates whether this method can wait a short interval before returning, to allow the system to collect garbage and finalize objects.|
|GetType||Gets the Type of the current instance. (inherited from Object)|
|KeepAlive||References the specified object, which makes it ineligible for garbage collection from the start of the current routine to the point where this method is called.|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (inherited from Object)|
|RemoveMemoryPressure||Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection.|
|ReRegisterForFinalize||Requests that the system call the finalizer for the specified object for which SuppressFinalize has previously been called.|
|SuppressFinalize||Requests that the system not call the finalizer for the specified object.|
|ToString||Returns a String that represents the current Object. (inherited from Object)|
|WaitForPendingFinalizers||Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.|