Modifica

Condividi tramite


SystemEvents.EventsThreadShutdown Event

Definition

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

public:
 static event EventHandler ^ EventsThreadShutdown;
public static event EventHandler? EventsThreadShutdown;
public static event EventHandler EventsThreadShutdown;
member this.EventsThreadShutdown : EventHandler 
Public Shared Custom Event EventsThreadShutdown As EventHandler 

Event Type

Exceptions

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.

Remarks

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.

Caution

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

Applies to