Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GC Members

GC overview

Public Properties

public propertystatic (Shared in Visual Basic)MaxGeneration

Supported by the .NET Compact Framework.

Gets the maximum number of generations the system currently supports.

Public Methods

public methodstatic (Shared in Visual Basic)Collect

Supported by the .NET Compact Framework.

Overloaded. Forces garbage collection.
public methodstatic (Shared in Visual Basic)GetGeneration Overloaded. Returns the current generation number of an object.
public methodstatic (Shared in Visual Basic)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.
public methodstatic (Shared in Visual Basic)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.
public methodstatic (Shared in Visual Basic)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.
public methodstatic (Shared in Visual Basic)SuppressFinalize

Supported by the .NET Compact Framework.

Requests that the system not call the finalizer method for the specified object.
public methodstatic (Shared in Visual Basic)WaitForPendingFinalizers

Supported by the .NET Compact Framework.

Suspends the current thread until the thread processing the queue of finalizers has emptied that queue.

See Also

GC Class | System Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.