Terminates the current process.
Assembly: System.Windows (in System.Windows.dll)
This method should only be used in cases where the user is unable to make any useful forward progress such as if the user is presented with an End User License Agreement and declines or if the app requires the user to login and the user can’t provide credentials. Otherwise, apps should not use this method to provide an “Exit” mechanism. The method does not raise any application lifecycle events. Before you call this method, you must save the state of the app.