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)

public void EndGame ()

Exception typeCondition
ObjectDisposedException This is disposed.
InvalidOperationExceptionThis NetworkSession is not the host, or is in an invalid state to call this method.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

ADD
Show: