Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public static event EventHandler<InviteAcceptedEventArgs> InviteAccepted

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.

Dd254812.note(en-us,XNAGameStudio.41).gifImportant
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.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show:
© 2015 Microsoft