ApplicationContext.ExitThreadCore Method ()


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

Terminates the message loop of the thread.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected virtual void ExitThreadCore()

This method is called from ExitThread.


ExitThread and ExitThreadCore do not actually cause the thread to terminate. These methods raise the ThreadExit event to which the Application object listens. The Application object then terminates the thread.

.NET Framework
Available since 1.1
Return to top