OcclusionQuery.Begin Method

Begins application of the query.

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

Syntax

public void Begin ()

Exceptions

Exception type Condition
InvalidOperationException
  • Begin cannot be called again until End has been successfully called.
  • Begin may not be called on this query object again before IsComplete has been checked.

See Also

Reference

OcclusionQuery Class
OcclusionQuery Members
Microsoft.Xna.Framework.Graphics Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista