> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblMatchmakingDeleteMatchTicketAsync

> XblMatchmakingDeleteMatchTicketAsync

# XblMatchmakingDeleteMatchTicketAsync

删除服务器上的匹配票证。

## 语法

```cpp theme={null}
HRESULT XblMatchmakingDeleteMatchTicketAsync(  
         XblContextHandle xboxLiveContext,  
         const char* serviceConfigurationId,  
         const char* hopperName,  
         const char* ticketId,  
         XAsyncBlock* asyncBlock  
)  
```

### 参数

*xboxLiveContext*   \_In\_\
类型：[XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

本地用户的 XBOX live 上下文。

*serviceConfigurationId*   \_In\_\
类型：char\*

标题的服务配置 ID (SCID)。SCID 区分大小写，因此请直接从合作伙伴中心粘贴。

*hopperName*   \_In\_\
类型：char\*

匹配票证所在的 hopper 的名称。

*ticketId*   \_In\_\
类型：char\*

要在服务器上删除的票证的 ID。

*asyncBlock*   \_In\_\
类型：XAsyncBlock\*

此操作的 AsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的 HRESULT 返回代码。

## REST 调用

调用 V103 DELETE /serviceconfigs/{serviceConfigId}/hoppers/{hopperName}/tickets/{ticketId}

## 要求

**头文件：** matchmaking\_c.h

**库：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另请参阅

[matchmaking\_c](/reference/live/xsapi-c/matchmaking_c/matchmaking_c_members)


## Related topics

- [使用 SmartMatch 匹配](/zh-CN/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-how-tos.md)
- [多人游戏任务](/zh-CN/services/xbox-services/multiplayer/mpsd/how-to/live-mpsd-how-tos.md)
- [XblMatchmakingCreateMatchTicketAsync](/zh-CN/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakingcreatematchticketasync.md)
- [XblMatchmakingGetMatchTicketDetailsAsync](/zh-CN/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakinggetmatchticketdetailsasync.md)
- [XblMatchmakingCreateMatchTicketResult](/zh-CN/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakingcreatematchticketresult.md)
