Game.Exit Method

Exits the game.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)

public void Exit ()

Exception typeCondition
InvalidOperationExceptionThe current platform does not allow games to exit.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: