Sdílet prostřednictvím


NetworkSession.BeginJoin Method

Starts a join operation for the specified multiplayer session.

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

Syntax

public static IAsyncResult BeginJoin (
         AvailableNetworkSession availableSession,
         AsyncCallback callback,
         Object asyncState
)

Parameters

  • availableSession
    Session the gamer is attempting to join.
  • callback
    The method to be called once the asynchronous operation has finished.
  • asyncState
    State of the asynchronous operation.

Return Value

An IAsyncResult used to track the progress of the method. Call EndJoin to access these results.

Exceptions

Exception type Condition
ArgumentNullException availableSession is null.
ObjectDisposedException availableSession is disposed.

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune