GCPressureAttribute 類別

定義

僅供 Microsoft 內部使用。

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
繼承
GCPressureAttribute
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v1.0 引進)

備註

啟用Windows 執行階段 API,這些 API 會使用大量原生記憶體來向垃圾收集的記憶體使用量發出訊號, (GC) 環境,例如 JavaScript 和 .NET Framework。 套用 GCPressureAttribute 可讓您有效率地排程垃圾收集掃掠。

GC 環境會明確忽略 windows 命名空間外部Windows 執行階段物件上的 屬性。

建構函式

GCPressureAttribute()

建立並初始化 屬性的新實例。

欄位

amount

僅供 Microsoft 內部使用。

適用於

另請參閱