共用方式為


Game.Exiting Event

Raised when the game is exiting.

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

Syntax

public event EventHandler Exiting

See Also

Reference

Game Class
Game Members
Microsoft.Xna.Framework Namespace

Programming Guide

How to: Exit a Game

Platforms

Xbox 360, Windows XP SP2, Windows Vista