Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 XP SP2, Windows Vista