Share via


NetworkSession.InviteAccepted Event

Event that occurs when a user has accepted an invite to join a network session.

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

Syntax

public static event EventHandler<InviteAcceptedEventArgs> InviteAccepted

Remarks

Note

When someone accepts an invitation for Xbox LIVE Community Games, but the game is not installed already on his or her computer, the invited player will be taken to the game offer. The offer enables the invited player to download the game and accept the invitation to start the game.

For creator games still waiting to pass peer review, the game invitation will be sent over the Xbox LIVE service to the other player. If the game is not installed the invited player will be prompted with a message indicating that he or she can get the game from the game creator.

Notification of this event may be delivered at any time. However, if the game has just been launched in response to a cross-title invite, it will arrive as soon as the game starts up. In this case, the event will be raised as soon as the managed client subscribes to it. In response to this event, games should end any existing network session, and then call JoinInvited. There is no need to display any user interface before this. The system will be prompted already to confirm the user's acceptance of the invite.

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 XP SP2, Windows Vista, Zune