GamerPrivileges.AllowOnlineSessions Property

Checks whether this gamer is allowed to play in online multiplayer sessions.

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

Syntax

public bool AllowOnlineSessions { get; }

Property Value

true if this gamer is allowed to play in online multiplayer sessions; false otherwise.

Remarks

This may be disabled based on parental control settings. Also, it is disabled if the gamer does not have a Xbox LIVE Gold or LIVE Silver membership. This property does not affect system link sessions, which are always available.

While in limited trial mode, this property will return false, which means gamers won't be able to use the Xbox LIVE servers to connect to other machines over the Internet. It is possible that the game may change from trial mode at any time, including during actual gameplay. For more information, please see Guide.IsTrialMode.

See Also

Reference

Guide.IsTrialMode Property
SignedInGamer.Privileges Property
GamerPrivileges Class
GamerPrivileges Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune