GCPressureAttribute Klasse

Definition

Nur für die interne Verwendung durch Microsoft vorgesehen.

public ref class GCPressureAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class GCPressureAttribute final : Attribute
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.AttributeName("gc_pressure")]
class GCPressureAttribute final : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class GCPressureAttribute : Attribute
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.RuntimeClass)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.AttributeName("gc_pressure")]
public sealed class GCPressureAttribute : Attribute
function GCPressureAttribute()
Public NotInheritable Class GCPressureAttribute
Inherits Attribute
Vererbung
GCPressureAttribute
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (eingeführt in v1.0)

Hinweise

Ermöglicht Windows-Runtime APIs, die erhebliche Mengen nativen Arbeitsspeichers verwenden, um ihren Speicherbedarf an Gc-Umgebungen (Garbage Collection) zu signalisieren, z. B. JavaScript und .NET Framework. Das Anwenden von GCPressureAttribute ermöglicht eine effiziente Planung von Garbage Collection-Sweeps.

GC-Umgebungen ignorieren das Attribut explizit für Windows-Runtime Objekte, die sich außerhalb des Windows-Namespace befinden.

Konstruktoren

GCPressureAttribute()

Erstellt und initialisiert eine neue instance des Attributs.

Felder

amount

Nur für die interne Verwendung durch Microsoft vorgesehen.

Gilt für:

Weitere Informationen