Export (0) Print
Expand All

Game.ShowMissingRequirementMessage Method

This is used to display an error message if there is no suitable graphics device or sound card.

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

protected virtual bool ShowMissingRequirementMessage (
         Exception exception
)

Parameters

exception
The exception to display.

Return Value

true if an error was displayed, otherwise false.

Dd282395.note(en-US,XNAGameStudio.30).gifXbox 360 Specific Information
On the Xbox 360 platform, this method will not display a message box and return immediately.
Dd282395.note(en-US,XNAGameStudio.30).gifZune Specific Information
On the Zune platform, this method will not display a message box and return immediately.

Games are not expected to call this method directly. This method will be called automatically if the game throws an unhandled exception of type NoSuitableGraphicsDeviceException or NoAudioHardwareException. You may override this method to add messages for additional exception types, or to provide localized versions of the error message text.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show:
© 2014 Microsoft