GamerPrivileges.AllowOnlineSessions Property

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

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

public bool AllowOnlineSessions { get; }

Property Value

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

AllowOnlineSessions will return false if the gamer does not have an Xbox LIVE membership, is not logged in to Xbox LIVE, or if parental control settings restrict the gamer from connecting to online game sessions. This property does not affect local system link sessions, which are always available.

While in trial mode, this property returns false. It is possible that the game may change from trial mode at any time, including during gameplay. For more information, see Guide.IsTrialMode.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions