GCPressureAttribute Class

Microsoft internal use only.

Syntax

public ref class GCPressureAttribute sealed : public Attribute  

Remarks

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.

Requirements

Namespace: Windows.Foundation.Metadata

Metadata: windows.winmd

See also

Reference

GCPressureAttribute Members

Windows.Foundation.Metadata Namespace