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


Type: Exception
The exception to display.

Return Value

true if an error was displayed, otherwise false.

Dd282395.note(en-us,XNAGameStudio.41).gifXbox 360 Specific Information
On the Xbox 360 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 7, Windows Vista, Windows XP

Community Additions