Share via


NetworkSession.BeginJoinInvited Method (Generic IEnumerable, AsyncCallback, Object)

Starts joining an existing network session in response to an InviteAccepted notification event with the specified collection of local gamers. Call EndJoinInvited to access the asynchronous method results.

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

Syntax

public static IAsyncResult BeginJoinInvited (
         IEnumerable<SignedInGamer> localGamers,
         AsyncCallback callback,
         Object asyncState
)

Parameters

  • localGamers
    Type: IEnumerable<SignedInGamer>
    A collection of local signed-in gamers to add to the network session.
  • callback
    Type: AsyncCallback
    Method to be called at the conclusion of the asynchronous operation.
  • asyncState
    Type: Object
    State of the asynchronous operation.

Return Value

An IAsyncResult used to track the progress of the method.

Remarks

See Inviting Players to Join Your Game for more information about adding game invitation support to your title.

See Also

Overview

Working with Asynchronous Methods in XNA Game Studio

Reference

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

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP