NetworkSession.StartGame Method

Changes the session state from NetworkSessionState.Lobby to NetworkSessionState.Playing.

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

Syntax

public void StartGame ()

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