SystemEvents.EventsThreadShutdown Event


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Occurs before the thread that listens for system events is terminated.

Namespace:   Microsoft.Win32
Assembly:  System (in System.dll)

Public Shared Event EventsThreadShutdown As EventHandler

Exception Condition

System event notifications are not supported under the current context. Server processes, for example, might not support global system event notifications.


The attempt to create a system events window thread did not succeed.

This event is raised as the thread that listens for system events is about to be terminated. System event delegates are invoked using the thread that listens for system events.


Because this is a static event, you must detach your event handlers when your application is disposed, or memory leaks will result.

.NET Framework
Available since 1.1
Return to top