次の方法で共有


Guide.IsScreenSaverEnabled Property

Gets or sets the current state of the screen saver. This property has no effect for Windows games.

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

Syntax

public static bool IsScreenSaverEnabled { get; set; }

Property Value

true if the screen saver is enabled; false otherwise.

Remarks

The IsScreenSaverEnabled property is a per-game property. Disabling the screen saver for this game does not permanently disable the screen saver. Use this method when displaying cutscenes or during other periods where the gamer could become inactive for a long period of time.

See Also

Reference

Guide Class
Guide Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista