asp.net.ph

GC Class

System Namespace


Controls the system garbage collector, a service that automatically reclaims unused memory.

GC Class Members

Collapse   Properties

Visibility Name Value Type Accessibility
public static MaxGeneration Int32 [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
public static AddMemoryPressure ( Int64 bytesAllocated ) Void
public static CancelFullGCNotification ( ) Void
public static Collect ( Int32 generation , GCCollectionMode mode ) Void
public static Collect ( Int32 generation , GCCollectionMode mode , Boolean blocking ) Void
public static Collect ( Int32 generation , GCCollectionMode mode , Boolean blocking , Boolean compacting ) Void
public static Collect ( Int32 generation ) Void
public static Collect ( ) Void
public static CollectionCount ( Int32 generation ) Int32
public static EndNoGCRegion ( ) Void
public static GetGeneration ( WeakReference wo ) Int32
public static GetGeneration ( Object obj ) Int32
public static GetTotalMemory ( Boolean forceFullCollection ) Int64
public static KeepAlive ( Object obj ) Void
public static RegisterForFullGCNotification ( Int32 maxGenerationThreshold , Int32 largeObjectHeapThreshold ) Void
public static RemoveMemoryPressure ( Int64 bytesAllocated ) Void
public static ReRegisterForFinalize ( Object obj ) Void
public static SuppressFinalize ( Object obj ) Void
public static TryStartNoGCRegion ( Int64 totalSize , Boolean disallowFullBlockingGC ) Boolean
public static TryStartNoGCRegion ( Int64 totalSize , Int64 lohSize ) Boolean
public static TryStartNoGCRegion ( Int64 totalSize ) Boolean
public static TryStartNoGCRegion ( Int64 totalSize , Int64 lohSize , Boolean disallowFullBlockingGC ) Boolean
public static WaitForFullGCApproach ( ) GCNotificationStatus
public static WaitForFullGCApproach ( Int32 millisecondsTimeout ) GCNotificationStatus
public static WaitForFullGCComplete ( ) GCNotificationStatus
public static WaitForFullGCComplete ( Int32 millisecondsTimeout ) GCNotificationStatus
public static WaitForPendingFinalizers ( ) Void

Remarks

Methods in this class influence when an object is garbage collected and when resources allocated by an object are released ( "finalized" ). Properties in this class provide information about the total amount of memory available in the system and the age category, or "generation", of memory allocated to an object.

Skip Navigation Links



Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph