Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OcclusionQuery Constructor

OcclusionQuery Constructor

Initializes a new instance of OcclusionQuery with the specified device.

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

public OcclusionQuery (
         GraphicsDevice graphicsDevice


Type: GraphicsDevice
The graphics device to associate with this query.

Exception typeCondition
ArgumentNullException graphicsDevice is null.
NotSupportedException The profile does not support occlusion queries.
OutOfMemoryExceptionThere is not enough memory to create this resource.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2015 Microsoft