Game.InactiveSleepTime Property
Gets or sets the time to sleep when the game is inactive.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)
Syntax
public TimeSpan InactiveSleepTime { get; set; }
Property Value
The time to sleep when the game is inactive.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | The value specified for InactiveSleepTime is not greater than or equal to zero. Specify zero or a positive value. |
See Also
Reference
Game Class
Game Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP