Shuts down the app.
public: virtual void Exit() = Exit;
public void Exit();
Public Sub Exit ()
Use this method to provide UI that enables users to exit your app. Normally, however, you should not provide this UI because the system automatically manages app lifetime and terminates suspended apps as needed to free resources.