GCPressureAttribute GCPressureAttribute GCPressureAttribute GCPressureAttribute Class


Microsoft internal use only.

public : sealed class GCPressureAttribute : Attribute
public sealed class GCPressureAttribute : Attribute
Public NotInheritable Class GCPressureAttribute Inherits Attribute
var gcPressureAttribute = new gcPressureAttribute();
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)


Enables Windows Runtime APIs that use significant amounts of native memory to signal their memory footprint to garbage-collected (GC) environments, like JavaScript and .NET Framework. Applying the GCPressureAttribute enables efficient scheduling of garbage collection sweeps.

GC environments explicitly ignore the attribute on Windows Runtime objects that are outside of the Windows namespace.


GCPressureAttribute() GCPressureAttribute() GCPressureAttribute() GCPressureAttribute()

Creates and initializes a new instance of the attribute.

public : GCPressureAttribute()
public GCPressureAttribute()
Public Sub New()
var gcPressureAttribute = new gcPressureAttribute();