Export (0) Print
Expand All

GC Methods

The GC type exposes the following members.

  Name Description
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 Collect() Induces an immediate garbage collection of all generations.
Public method Static member Supported by Silverlight for Windows Phone Collect(Int32) Security Critical. Induces an immediate garbage collection of a specified generation.
Public method Static member Supported by Silverlight for Windows Phone GetGeneration Security Critical. Retrieves the generation of a specified object.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 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.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 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.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 ReRegisterForFinalize Requests that the system call the finalizer for the specified object for which SuppressFinalize has previously been called.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 SuppressFinalize Requests that the system not call the finalizer for the specified object.
Public method Static member Supported by Silverlight for Windows Phone Supported by Xbox 360 WaitForPendingFinalizers Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.
Top

Community Additions

ADD
Show:
© 2014 Microsoft