Application.Exit method

Applies to Windows and Windows Phone

Shuts down the app.

Syntax


public void Exit()

Parameters

This method has no parameters.

Remarks

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

Application

 

 

Show:
© 2014 Microsoft