Game.ShowMissingRequirementMessage Method

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

Syntax

'Declaration
Protected Overridable Function ShowMissingRequirementMessage ( _
         exception As Exception _
) As Boolean 
protected virtual bool ShowMissingRequirementMessage (
         Exception exception
)
protected:
virtual bool ShowMissingRequirementMessage(
         Exception exception
)

Parameters

  • exception
    Type: Exception
    The exception to display.

Return Value

Type: Boolean
true if an error was displayed, otherwise false.

Remarks

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.

Requirements

Namespace: Microsoft.Xna.Framework

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

See Also

Reference

Game Class
Game Members
Microsoft.Xna.Framework Namespace

Platforms

Windows Phone