Shows the game invite UI.
Note This method is implemented by the 2015 Multiplayer and applies only to that multiplayer version and later. It is intended for use with template contract 104/105 or later.
public:
static IAsyncAction^ ShowSendGameInvitesAsync(
IUser^ requestingUser,
IMultiplayerSessionReference^ sessionReferenceToInviteTo,
String^ customActivationContext
)
requestingUser
Type: IUser
The requesting user.
sessionReferenceToInviteTo
Type: IMultiplayerSessionReference
The session reference for the session hosting the invite.
customActivationContext
Type: String
The custom activation context that is available to the invitee in the activation URI for an invite. The custom activation context string must be URL-safe and binary content should be encoded with URL-safe base64 encoding. The maximum length is 160 characters.
Type: IAsyncAction
Returns an IAsyncAction object that represents the state of the asynchronous operation. Completion of the asynchronous operation is signaled by using a handler that is passed to the IAsyncAction.Completed property.
ShowSendGameInvitesAsync displays the game invite UI and allows the requesting user to select people from the user’s people list and invite them to join the user’s game session.
Namespace: Windows.Xbox.UI
Metadata: windows.winmd