InviteAcceptedEventArgs.IsCurrentSession Property

Indicates if the invitation is for the current local session.

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

Syntax

public bool IsCurrentSession { get; }

Property Value

Returns true if the invitation is for the current local session, and false if it is not.

Remarks

If IsCurrentSession is true, indicating that another local gamer has joined the session, call NetworkSession.AddLocalGamer to add more gamers to the session. If IsCurrentSession is false, indicating the invitation is from a session that has not been joined, call NetworkSession.JoinInvited to allow the gamer to join the remote session.

See Also

Tasks

Inviting Players to Join Your Game

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP