Peer.InviteAsyncCancel Method (Object)
Cancels the invitation that was sent with the InviteAsync method.
Assembly: System.Net (in System.Net.dll)
Calling this method guarantees the system will cease to wait for a PeerInvitationResponse from the peer associated with the InviteAsync request.
Multiple invitations may be outstanding at any given time. If themethod is called when an asynchronous operation identified by the userToken is not in existence, an exception is thrown. The userToken object must be provided since it is used to track a specific asynchronous call. This host application-supplied object is unique for each invite request.
Available since 3.5