SystemEvents.LowMemory イベント

定義

注意事項

The LowMemory event has been deprecated and is not supported.

注意事項

This event has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202

注意事項

This event has been deprecated. https://go.microsoft.com/fwlink/?linkid=14202

システムが使用可能な RAM を使い切ったときに発生します。

public:
 static event EventHandler ^ LowMemory;
[System.ComponentModel.Browsable(false)]
[System.Obsolete("The LowMemory event has been deprecated and is not supported.")]
public static event EventHandler? LowMemory;
public static event EventHandler LowMemory;
[System.ComponentModel.Browsable(false)]
[System.Obsolete("This event has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")]
public static event EventHandler LowMemory;
[System.ComponentModel.Browsable(false)]
public static event EventHandler? LowMemory;
[System.ComponentModel.Browsable(false)]
[System.Obsolete("This event has been deprecated. https://go.microsoft.com/fwlink/?linkid=14202")]
public static event EventHandler LowMemory;
[System.ComponentModel.Browsable(false)]
[System.Obsolete("This event has been deprecated. https://go.microsoft.com/fwlink/?linkid=14202")]
public static event EventHandler? LowMemory;
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("The LowMemory event has been deprecated and is not supported.")>]
member this.LowMemory : EventHandler 
member this.LowMemory : EventHandler 
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This event has been deprecated. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.LowMemory : EventHandler 
[<System.ComponentModel.Browsable(false)>]
member this.LowMemory : EventHandler 
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("This event has been deprecated. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.LowMemory : EventHandler 
Public Shared Custom Event LowMemory As EventHandler 

イベントの種類

属性

例外

システム イベント通知は、現在のコンテキストではサポートされていません。 たとえば、サーバー プロセスはグローバル システム イベント通知をサポートしていない場合があります。

システム イベント ウィンドウ スレッドの作成が成功しませんでした。

注釈

このイベントは、WM_COMPACTING メッセージをラップします。 このメッセージは、30 秒から 60 秒の間隔でシステム時間の 12.5% 以上がメモリの圧縮に費やされていることがシステムで検出されると、すべての最上位ウィンドウに送信されます。 これは、システム メモリが不足していることを示します。

Note

このイベントは、メッセージ ポンプが実行されている場合にのみ発生します。 Windows サービスでは、非表示のフォームが使用されているか、メッセージ ポンプが手動で開始されていない限り、このイベントは発生しません。 Windows サービスで非表示のフォームを使用してシステム イベントを処理する方法を示すコード例については、 SystemEvents クラスを参照してください。

Caution

これは静的イベントであるため、アプリケーションが破棄されたときにイベント ハンドラーをデタッチする必要があります。または、メモリ リークが発生します。

注意 (呼び出し元)

このメッセージは、16 ビット Windows ベースのアプリケーションとの互換性のためにのみ提供されます。

適用対象