共用方式為


NetworkSession.SessionEnded Event

Occurs when the multiplayer session ends.

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

Syntax

public event EventHandler<NetworkSessionEndedEventArgs> SessionEnded

See Also

Tasks

Managing Player Movement Between Lobby and Gameplay Modes

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP