Bagikan melalui


NetworkSession.GamerJoined Event

Occurs when a new player joins a multiplayer session.

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

Syntax

public event EventHandler<GamerJoinedEventArgs> GamerJoined

Remarks

This event is raised for both local and remote players, including when the session is first created.

When a new event handler is attached to GamerJoined the handler receives join notifications for all players currently in the session. This means there will be a join notification for each gamer that has joined the session before the event handler is attached to the event.

See Also

Tasks

Joining and Leaving a Game
Joining an In-Progress Game

Reference

NetworkSession Class
NetworkSession Members
Microsoft.Xna.Framework.Net Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP