GCPressureAttribute attribute

GCPressureAttribute attribute

Microsoft internal use only.

Syntax


public ref class GCPressureAttribute sealed : Attribute

Members

The GCPressureAttribute attribute inherits from Object. GCPressureAttribute also has these types of members:

Constructors

The GCPressureAttribute attribute has these constructors.

ConstructorDescription
GCPressureAttribute Creates and initializes a new instance of the 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 (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

Windows::Foundation::Metadata

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows::Foundation::Metadata

Metadata

Windows.winmd

Attributes

[AttributeUsage(512)]
[Version(0x6020000)]

See also

Object
GCPressureAmount

 

 

Show:
© 2016 Microsoft