NetworkSession.EndGame Method
Changes the session state from NetworkSessionState.Playing to NetworkSessionState.Lobby.
Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework.Net (in microsoft.xna.framework.net.dll)
Syntax
public void EndGame ()
Exceptions
Exception type | Condition |
---|---|
ObjectDisposedException | This is disposed. |
InvalidOperationException | This NetworkSession is not the host, or is in an invalid state to call this method. |
See Also
Reference
NetworkSession Class
NetworkSession Members
Microsoft.Xna.Framework.Net Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP