共用方式為


NetworkSession Events

Public Events

Name Description
Public Event GameEnded Occurs when the game moves from gameplay to the lobby.
Public Event GamerJoined Occurs when a new player joins a multiplayer session.
Public Event GamerLeft Occurs when a player leaves the multiplayer session.
Public Event GameStarted Occurs when the game moves from the lobby into actual gameplay.
Public Event HostChanged Occurs when the session host has changed.
Public Event Static InviteAccepted Event that occurs when a user has accepted an invitation to join a network session.
Public Event SessionEnded Occurs when the multiplayer session ends.
Public Event WriteArbitratedLeaderboard Notifies the game of its final chance to write data to arbitrated leaderboards for the specified player.
Public Event WriteTrueSkill Notifies the game of its final chance to write TrueSkill data for the specified player.
Public Event WriteUnarbitratedLeaderboard Notifies the game of its final chance to write data to unarbitrated leaderboards for the specified player.

See Also

Reference

NetworkSession Class
Microsoft.Xna.Framework.Net Namespace