Collect Method
Collapse the table of content
Expand the table of content

GC.Collect Method

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

Induces an immediate garbage collection of all generations.

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

public static void Collect()

Because Windows Phone apps generally do not have control of a whole process, calling this method is rarely needed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft