NetworkSession.BeginJoinInvited Method (Int32, AsyncCallback, Object)
Starts joining an existing network session in response to an InviteAccepted notification event. Call EndJoinInvited to access the asynchronous method results.
Namespace: Microsoft.Xna.Framework.Net
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public static IAsyncResult BeginJoinInvited (
int maxLocalGamers,
AsyncCallback callback,
Object asyncState
)
Parameters
- maxLocalGamers
Maximum number of local players on the same gaming machine in this network session. - callback
Method to be called at the conclusion of the asynchronous operation. - asyncState
State of the asynchronous operation.
Return Value
An IAsyncResult used to track the progress of the method.
Exceptions
Exception type | Condition |
---|---|
ArgumentOutOfRangeException | maxLocalGamers must be between 1 and 4. |
Remarks
Note
When someone accepts an invitation for Xbox LIVE Community Games, but the game is not installed already on his or her computer, the invited player will be taken to the game offer. The offer enables the invited player to download the game and accept the invitation to start the game.
For creator games still waiting to pass peer review, the game invitation will be sent over the Xbox LIVE service to the other player. If the game is not installed the invited player will be prompted with a message indicating that he or she can get the game from the game creator.
See Also
Reference
NetworkSession Class
NetworkSession Members
Microsoft.Xna.Framework.Net Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista, Zune