Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

OcclusionQuery Constructor

Initializes a new instance of OcclusionQuery with the specified device.

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

public OcclusionQuery (
         GraphicsDevice graphicsDevice


The graphics device to associate with this query.

Exception typeCondition
ArgumentNullException graphicsDevice is null.
InvalidOperationExceptionThis resource could not be created.

Xbox 360, Windows XP SP2, Windows Vista

Community Additions

© 2015 Microsoft