Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Game.OnExiting Method

Raises an Exiting event. Override this method to add code to handle when the game is exiting.

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

protected virtual void OnExiting (
         Object sender,
         EventArgs args


The Game.
Arguments for the Exiting event.

The OnExiting method allows derived classes to handle the Exiting event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

© 2015 Microsoft