Windows Dev Center

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.

 

Fields

The GCPressureAttribute attribute has these fields.

FieldData typeDescription
amount

GCPressureAmount

The amount of memory pressure to associate with the marked type.

 

Methods

The GCPressureAttribute attribute inherits methods from the Object class.

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

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:
© 2015 Microsoft