MatchmakingTicket.Cancel method

Cancels the ticket.

public void Cancel()

Remarks

This method queues an asynchronous operation to cancel this matchmaking ticket. On success, a OnMatchmakingTicketCompleted will be provided indicating that the ticket has been canceled.

This method does not guarantee the ticket will be canceled. The ticket may complete before the cancellation can be processed, or the cancellation request may fail due to networking or service errors. If the cancellation attempt fails but is retrievable, the library will continue to retry the cancellation. Otherwise, a OnMatchmakingTicketCompleted will be provided that indicates the ticket failed.

See Also