GCPressureAttribute attribute

Applies to Windows and Windows Phone

Microsoft internal use only.

Syntax


public ref class GCPressureAttribute sealed : Attribute

Attributes

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

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows::Foundation::Metadata

Metadata

Windows.winmd

See also

GCPressureAmount

 

 

Show:
© 2014 Microsoft