Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GCSettings Class

Definition

Namespace:
System.Runtime
Assemblies:
mscorlib.dll, System.Runtime.dll
Assemblies:
netstandard.dll, System.Runtime.dll
Assembly:
System.Runtime.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
GCSettings.cs
Source:
GCSettings.cs
Source:
GCSettings.cs
Source:
GCSettings.cs
Source:
GCSettings.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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
Inheritance
GCSettings

Remarks

Use the IsServerGC property to determine whether server garbage collection is enabled for the current process.

Properties

Name Description
IsServerGC

Gets a value that indicates whether server garbage collection is enabled.

LargeObjectHeapCompactionMode

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.

Applies to


Feedback

Was this page helpful?