GCSettings 类

定义

指定当前进程的垃圾回收设置。Specifies the garbage collection settings for the current process.

public ref class GCSettings abstract sealed
public static class GCSettings
type GCSettings = class
Public Class GCSettings
继承
GCSettings

注解

使用 IsServerGC 属性来确定是否为当前进程启用了服务器垃圾回收。Use the IsServerGC property to determine whether server garbage collection is enabled for the current process.

属性

IsServerGC

获取一个值,该值指示是否启用了服务器垃圾回收。Gets a value that indicates whether server garbage collection is enabled.

LargeObjectHeapCompactionMode

获取或设置指示完全阻止垃圾回收是否压缩大型对象堆 (LOH) 的值。Gets or sets a value that indicates whether a full blocking garbage collection compacts the large object heap (LOH).

LatencyMode

获取或设置垃圾收集的当前滞后时间模式。Gets or sets the current latency mode for garbage collection.

适用于