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

# game_chat_data_transport_requirement

> game_chat_data_transport_requirement

# game\_chat\_data\_transport\_requirement

定義傳出資料的資料傳輸需求。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
enum class game_chat_data_transport_requirement  
{  
    guaranteed,  
    best_effort,  
}  
```

<a id="constantsSection" />

## 常數

| 常數 | 描述 |
| - | - |
| guaranteed | 資料必須以保證傳遞的方式傳輸。<br /><br /> 無論環境中的封包遺失情況為何，都必須保證資料的傳遞，除非目標接收者在傳遞完成之前已從應用程式的網路中移除。不需要依序傳遞。 |
| best\_effort | 資料應以盡力傳遞的方式傳輸。<br /><br /> 資料應以最大努力傳送；不過，可接受環境中的封包遺失。不需要依序傳遞。 |

<a id="remarksSection" />

## 備註

此列舉描述 Game Chat 2 中傳出資料框架的資料傳輸需求。您可以從對應 [game\_chat\_data\_frame](/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame) 結構的 `transport_requirement` 成員，指定或擷取資料框架的資料傳輸需求。

如需處理資料框架的詳細資訊，請參閱[使用 Game Chat 2 C++ API](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2) 中的[處理資料框架](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/using-game-chat-2#processing_data_frames)一節。

<a id="requirementsSection" />

## 需求

**標頭：** GameChat2.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro)\
[GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members)


## Related topics

- [game_chat_data_frame](/zh-TW/reference/chat/gamechat2/structs/game_chat_data_frame.md)
- [GameChat2 成員](/zh-TW/reference/chat/gamechat2/gamechat2_members.md)
- [Game Chat 2 簡介](/zh-TW/services/xbox-services/multiplayer/chat/game-chat2/game-chat-2-intro.md)
- [chat_manager::process_incoming_data](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_process_incoming_data.md)
- [chat_manager::finish_processing_data_frames](/zh-TW/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_finish_processing_data_frames.md)
