Redigera

PFMatchmakingTicketCancel

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.

Syntax

HRESULT PFMatchmakingTicketCancel(  
    PFMatchmakingTicketHandle ticket  
)  

Parameters

ticket   PFMatchmakingTicketHandle

The handle of the matchmaking ticket.

Return value

Type: HRESULT

S_OK if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via PFMultiplayerGetErrorMessage().

Remarks

This method queues an asynchronous operation to cancel this matchmaking ticket. On success, a PFMatchmakingTicketCompletedStateChange 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 cancelation can be processed, or the cancelation request may fail due to networking or service errors. If the cancelation attempt fails but is retriable, the library will continue to retry the cancelation. Otherwise, a PFMatchmakingTicketCompletedStateChange will be provided that indicates the ticket failed.

Requirements

Header: PFMatchmaking.h

See also

PFMatchmaking members