GCPressureAttribute
GCPressureAttribute
GCPressureAttribute
GCPressureAttribute
Class
Definition
Microsoft internal use only.
public : sealed class GCPressureAttribute : Attributepublic sealed class GCPressureAttribute : AttributePublic NotInheritable Class GCPressureAttribute Inherits Attribute// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.FoundationContract (introduced v1)
|
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.