Methods
-
Add
Memory static Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection.Pressure(Int64) -
Cancel
Full static Cancels the registration of a garbage collection notification.GCNotification() - Collect() static Forces an immediate garbage collection of all generations.
- Collect(Int32) static Forces an immediate garbage collection from generation 0 through a specified generation.
-
Collect(Int32,
GCCollection static Forces a garbage collection from generation 0 through a specified generation, at a time specified by a GCCollectionMode value.Mode) -
Collect(Int32,
GCCollection static Forces a garbage collection from generation 0 through a specified generation, at a time specified by a GCCollectionMode value, with a value specifying whether the collection should be blocking.Mode, Boolean) -
Collect(Int32,
GCCollection static Forces a garbage collection from generation 0 through a specified generation, at a time specified by a GCCollectionMode value, with values that specify whether the collection should be blocking and compacting.Mode, Boolean, Boolean) -
Collection
Count(Int32) static Returns the number of times garbage collection has occurred for the specified generation of objects. -
End
No static Ends the no GC region latency mode.GCRegion() -
Get
Allocated static Gets the total number of bytes allocated to the current thread since the beginning of its lifetime.Bytes For Current Thread() -
Get
GCMemory static Gets garbage collection memory information.Info() -
Get
Generation(Object) static Returns the current generation number of the specified object. -
Get
Generation(Weak static Returns the current generation number of the target of a specified weak reference.Reference) -
Get
Total static Gets a count of the bytes allocated over the lifetime of the process.Allocated Bytes(Boolean) -
Get
Total static 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.Memory(Boolean) -
Keep
Alive(Object) static 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. -
Re
Register static Requests that the system call the finalizer for the specified object for which SuppressFinalize(System.Object) has previously been called.For Finalize(Object) -
Register
For static Specifies that a garbage collection notification should be raised when conditions favor full garbage collection and when the collection has been completed.Full GCNotification(Int32, Int32) -
Remove
Memory static Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection.Pressure(Int64) -
Suppress
Finalize(Object) static Requests that the common language runtime not call the finalizer for the specified object. -
Try
Start static Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available.No GCRegion(Int64) -
Try
Start static Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available, and controls whether the garbage collector does a full blocking garbage collection if not enough memory is initially available.No GCRegion(Int64, Boolean) -
Try
Start static Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available for the large object heap and the small object heap.No GCRegion(Int64, Int64) -
Try
Start static Attempts to disallow garbage collection during the execution of a critical path if a specified amount of memory is available for the large object heap and the small object heap, and controls whether the garbage collector does a full blocking garbage collection if not enough memory is initially available.No GCRegion(Int64, Int64, Boolean) -
Wait
For static Returns the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime is imminent.Full GCApproach() -
Wait
For static Returns, in a specified time-out period, the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime is imminent.Full GCApproach(Int32) -
Wait
For static Returns the status of a registered notification for determining whether a full, blocking garbage collection by the common language runtime has completed.Full GCComplete() -
Wait
For static Returns, in a specified time-out period, the status of a registered notification for determining whether a full, blocking garbage collection by common language the runtime has completed.Full GCComplete(Int32) -
Wait
For static Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.Pending Finalizers()
Properties
-
Max
Generation static Gets the maximum number of generations that the system currently supports.