SystemEvents.EventsThreadShutdown イベント

定義

注意事項

SystemEvents.EventsThreadShutdown callbacks are not run before the process exits. Use AppDomain.ProcessExit instead.

システム イベントをリッスンするスレッドが終了する前に発生します。

public:
 static event EventHandler ^ EventsThreadShutdown;
[System.Obsolete("SystemEvents.EventsThreadShutdown callbacks are not run before the process exits. Use AppDomain.ProcessExit instead.", DiagnosticId="SYSLIB0059", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static event EventHandler? EventsThreadShutdown;
public static event EventHandler EventsThreadShutdown;
public static event EventHandler? EventsThreadShutdown;
[<System.Obsolete("SystemEvents.EventsThreadShutdown callbacks are not run before the process exits. Use AppDomain.ProcessExit instead.", DiagnosticId="SYSLIB0059", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.EventsThreadShutdown : EventHandler 
member this.EventsThreadShutdown : EventHandler 
Public Shared Custom Event EventsThreadShutdown As EventHandler 

イベントの種類

属性

例外

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

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

注釈

このイベントは、システム イベントをリッスンするスレッドが終了する間に発生します。 システム イベント デリゲートは、システム イベントをリッスンするスレッドを使用して呼び出されます。

Caution

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

適用対象