> ## 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.

# XblPreserveSessionMode

> XblPreserveSessionMode

# XblPreserveSessionMode

定義用來表示配對票證是用於新遊戲工作階段還是現有工作階段的值。

## 語法

```cpp theme={null}
enum class XblPreserveSessionMode  : uint32_t  
{  
    Unknown,  
    Always,  
    Never  
}  
```

## 常數

| 常數 | 描述 |
| - | - |
| Unknown | 伺服器傳回無法辨識的回應。 |
| Always | 一律使用現有的遊戲工作階段。這是為已建立或進行中的遊戲工作階段配對更多玩家。 |
| Never | 永不使用現有的遊戲工作階段。這是為新的遊戲工作階段配對玩家。 |

## 需求

**標頭：** matchmaking\_c.h

## 另請參閱

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


## Related topics

- [XblPreserveSessionMode](/reference/live/xsapi-c/matchmaking_c/enums/xblpreservesessionmode.md)
- [XblMatchTicketDetailsResponse](/reference/live/xsapi-c/matchmaking_c/structs/xblmatchticketdetailsresponse.md)
- [XblMatchmakingCreateMatchTicketAsync](/reference/live/xsapi-c/matchmaking_c/functions/xblmatchmakingcreatematchticketasync.md)
- [Using SmartMatch matchmaking](/services/xbox-services/multiplayer/matchmaking/concepts/live-matchmaking-how-tos.md)
