GCPressureAttribute GCPressureAttribute GCPressureAttribute GCPressureAttribute Class

Microsoft internal use only.

Syntax

Declaration

public sealed class GCPressureAttributepublic sealed class GCPressureAttributePublic NotInheritable Class GCPressureAttributepublic sealed class GCPressureAttribute

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.

Constructors summary

Creates and initializes a new instance of the attribute.

Constructors

  • GCPressureAttribute()
    GCPressureAttribute()
    GCPressureAttribute()
    GCPressureAttribute()

    Creates and initializes a new instance of the attribute.

    public GCPressureAttribute()public New()Public Sub New()public GCPressureAttribute()

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.FoundationContract (introduced v1)

Attributes

Windows.Foundation.Metadata.AttributeUsageAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Foundation.Metadata.dll