Share via


GraphicsDeviceInformation.Adapter Property

Specifies which graphics adapter to create the device on.

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

Syntax

public GraphicsAdapter Adapter { get; set; }

Property Value

The graphics adapter to create the device on.

Exceptions

Exception type Condition
ArgumentNullException Adapter is null. Try using DefaultAdapter instead.

See Also

Reference

GraphicsDeviceInformation Class
GraphicsDeviceInformation Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista