OcclusionQuery.Begin Method

Begins application of the query.

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

Syntax

public void Begin ()

Exceptions

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

See Also

Overview

Working with Asynchronous Methods in XNA Game Studio

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP