Calls ApplicationContext.ExitThreadCore, which raises the ApplicationContext.ThreadExit event.
- sender
The object that raised the event.
- e
The EventArgs that contains the event data.
The default implementation of this method calls ApplicationContext.ExitThreadCore.