NetworkSession.InviteAccepted Event
Event that occurs when a user has accepted an invitation to join a network session.
Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework.Net (in microsoft.xna.framework.net.dll)
Syntax
public static event EventHandler<InviteAcceptedEventArgs> InviteAccepted
Remarks
In addition to being sent if a player responds to a game invitation, this event is also sent to a title when a gamer requests to join an in-progress session by selecting Join Session In Progress from the gamer's friends list on the LIVE Guide.
Important
If your title does not register for the InviteAccepted event, its sessions will always show up as non-joinable.
Notification of this event may be delivered at any time. However, if the game has been launched in response to a cross-title invite, it will arrive as soon as the game starts. In this case, the event will be delivered as soon as the managed client subscribes to it.
In response to this event, games should end any existing network session and call JoinInvited. There is no need to display any user interface before this. The system will already have prompted the user to confirm acceptance of the game invitation.
For more information, see Inviting Players to Join Your Game.
See Also
Reference
Guide.ShowGameInvite Method
NetworkSession.JoinInvited Method
NetworkSession.BeginJoinInvited Method
NetworkSession.EndJoinInvited Method
NetworkSession Class
NetworkSession Members
Microsoft.Xna.Framework.Net Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP