GCSettings Class
Collapse the table of content
Expand the table of content

GCSettings Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the garbage collection settings for the current process.

System::Object
  System.Runtime::GCSettings

Namespace:  System.Runtime
Assembly:  mscorlib (in mscorlib.dll)

No code example is currently available or this language may not be supported.

The GCSettings type exposes the following members.

  NameDescription
Public propertyStatic memberIsServerGCGets a value that indicates whether server garbage collection is enabled.
Public propertyStatic memberLatencyModeGets or sets the current latency mode for garbage collection.
Top

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

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft