DrawableGameComponent.GraphicsDevice Property

The GraphicsDevice the DrawableGameComponent is associated with.

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

Syntax

public GraphicsDevice GraphicsDevice { get; }

Property Value

GraphicsDevice the DrawableGameComponent is associated with.

Exceptions

Exception type Condition
InvalidOperationException The GraphicsDevice property cannot be used before Initialize has been called.

See Also

Reference

DrawableGameComponent Class
DrawableGameComponent Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP