Edit

MatchmakingTicket.Cancel method

Important

XBOX Docs are now on docs.xbox.com! This page is kept as an archive and is no longer being updated. Visit our documentation on docs.xbox.com for the latest information and updates.

Visit the latest docs on docs.xbox.com

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