共用方式為


Game.Exit Method

Exits the game.

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

Syntax

public void Exit ()

Exceptions

Exception type Condition
InvalidOperationException The current platform does not allow games to exit.

See Also

Reference

Game Class
Game Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Exit a Game
Application Model Overview

Platforms

Xbox 360, Windows XP SP2, Windows Vista