SystemEvents::EventsThreadShutdown Event

 

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

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

public:
event EventHandler^ EventsThreadShutdown {
	static void add(EventHandler^ value);
	static void remove(EventHandler^ value);
}

Exception Condition
InvalidOperationException

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

ExternalException

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.

System_CAPS_cautionCaution

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
Show: