NetworkSession.JoinInvited Method (Generic IEnumerable)
Joins the specified local gamers, along with the local machine, to an existing network session in response to an InviteAccepted notification event from a non-local session.
Note
Use the NetworkSession.AddLocalGamer method to join players to a session in response to an InviteAccepted notification event for a session that already exists locally, as indicated by IsCurrentSession.
Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework.Net (in microsoft.xna.framework.net.dll)
Syntax
public static NetworkSession JoinInvited (
IEnumerable<SignedInGamer> localGamers
)
Parameters
- localGamers
Type: IEnumerable<SignedInGamer>
A collection of local signed-in gamers to add to the network session.
Return Value
The network session.
Exceptions
Exception type | Condition |
---|---|
NetworkSessionJoinException | The session either is full, is not joinable, or cannot be found.
|
Remarks
This method blocks until the operation has completed. For an asynchronous version of this method, see BeginJoinInvited.
See Also
Reference
Guide.ShowGameInvite Method
NetworkSession.InviteAccepted Event
NetworkSession.BeginJoinInvited Method
NetworkSession.EndJoinInvited Method
NetworkSession Class
NetworkSession Members
Microsoft.Xna.Framework.Net Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP