Delen via


CoreApplication.Exit Method

Definition

Shuts down the app.

public:
 static void Exit();
 static void Exit();
public static void Exit();
function exit()
Public Shared Sub Exit ()

Remarks

Starting with Windows 10, calling this method is no longer is treated as an app crash.

Don't call this method from within an activation event handler.

Windows Phone 8

This API is supported in native apps only.

Applies to