RemoteSystemSessionInvitationReceivedEventArgs
RemoteSystemSessionInvitationReceivedEventArgs
RemoteSystemSessionInvitationReceivedEventArgs
RemoteSystemSessionInvitationReceivedEventArgs
Class
Definition
Contains information about a RemoteSystemSessionInvitationListener.InvitationReceived event, namely the associated RemoteSystemSessionInvitation object.
public : sealed class RemoteSystemSessionInvitationReceivedEventArgs : IRemoteSystemSessionInvitationReceivedEventArgspublic sealed class RemoteSystemSessionInvitationReceivedEventArgs : IRemoteSystemSessionInvitationReceivedEventArgsPublic NotInheritable Class RemoteSystemSessionInvitationReceivedEventArgs Implements IRemoteSystemSessionInvitationReceivedEventArgs// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Examples
See the following code for an example of how to receive and handle remote session invitations.
public void SubscribeAndHandleInvites() {
var invitationListener = new RemoteSystemSessionInvitationListener();
// register the following code to handle this event:
invitationListener.InvitationReceived += async (sender, args) => {
// issue a join request to the session
RemoteSystemSessionJoinResult joinResult = await args.Invitation.RemoteSystemSessionInfo.JoinAsync();
// handle the join result as in the normal session discovery scenario
// ...
};
}
Remarks
This class is instantiated whenever the RemoteSystemSessionInvitationListener.InvitationReceived event is raised, and it should be handled by the method(s) registered to this event.
Properties
Invitation Invitation Invitation Invitation
Gets the RemoteSystemSessionInvitation object associated with the invitation received.
public : RemoteSystemSessionInvitation Invitation { get; }public RemoteSystemSessionInvitation Invitation { get; }Public ReadOnly Property Invitation As RemoteSystemSessionInvitation// You can use this property in JavaScript.
- Value
- RemoteSystemSessionInvitation RemoteSystemSessionInvitation RemoteSystemSessionInvitation RemoteSystemSessionInvitation
The RemoteSystemSessionInvitation object representing this invitation.