共用方式為


SignedInGamer.Privileges Property

Describes what operations a gamer is allowed to perform.

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

Syntax

public GamerPrivileges Privileges { get; }

Property Value

The operations a gamer is allowed to perform.

Remarks

Privileges can be defined by parental control settings, and also are set automatically in response to information like age, region, and whether the gamer has a Xbox LIVE Gold or a Silver membership. Games do not need to explicitly check privileges, because a GamerPrivilegeException is thrown if an unsupported operation is selected. However, these privilege bits may be useful to detect that an operation is unavailable before calling it in order to dim (make unavailable) the relevant menu option.

Bb975864.note(en-us,XNAGameStudio.41).gifWindows Phone Specific Information

On Windows Phone, privilege information is not retrieved from Xbox LIVE, but from what is stored locally on the device.

See Also

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP