GC Methods
.NET Framework 1.1
The methods of the GC class are listed here. For a complete list of GC class members, see the GC Members topic.
Public Methods
![]() Collect Supported by the .NET Compact Framework. | Overloaded. Forces garbage collection. |
![]() GetGeneration | Overloaded. Returns the current generation number of an object. |
![]() GetTotalMemory Supported by the .NET Compact Framework. | Retrieves the number of bytes currently thought to be allocated. A parameter indicates whether this method can wait a short interval before returning while the system collects garbage and finalizes objects. |
![]() KeepAlive Supported by the .NET Compact Framework. | References the specified object, making it ineligible for garbage collection from the start of the current routine to the point where this method is called. |
![]() ReRegisterForFinalize Supported by the .NET Compact Framework. | Requests that the system call the finalizer method for the specified object, for which SuppressFinalize has previously been called. |
![]() SuppressFinalize Supported by the .NET Compact Framework. | Requests that the system not call the finalizer method for the specified object. |
![]() WaitForPendingFinalizers Supported by the .NET Compact Framework. | Suspends the current thread until the thread processing the queue of finalizers has emptied that queue. |
