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

# PartyLocalChatControl::SetTextChatOptions

> 設定此聊天控制項與文字聊天相關聯的文字聊天選項。

設定此聊天控制項與文字聊天相關聯的文字聊天選項。

## 語法

```cpp theme={null}
PartyError SetTextChatOptions(  
    PartyTextChatOptions options,  
    void* asyncIdentifier  
)  
```

### 參數

**`options`**   [PartyTextChatOptions](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/enums/partytextchatoptions.md)

與文字聊天相關聯的選項，例如是否應翻譯傳入的文字聊天。

**`asyncIdentifier`**   void\*\
*選用*

選用的應用程式定義指標大小內容值，可用來將完成狀態變更與此呼叫相關聯。

### 傳回值

PartyError

`c_partyErrorSuccess` (如果設定聊天文字選項的非同步作業已開始)，否則為錯誤碼。如果此方法失敗，將不會產生任何相關的狀態變更。可透過 [PartyManager::GetErrorMessage()](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md) 擷取錯誤碼的人類可讀形式。

## 需求

**標頭：** Party.h

## 另請參閱

[PartyLocalChatControl](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol.md)


## Related topics

- [PartyTextChatOptions](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/enums/partytextchatoptions.md)
- [PartyChatTextReceivedStateChange](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/structs/partychattextreceivedstatechange.md)
- [PartyTextChatFilterLevel](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/enums/partytextchatfilterlevel.md)
- [PlayFab Party 版本資訊](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/release-notes.md)
- [使用文字內容審核](https://docs.xbox.com/zh-TW/services/playfab/community/voice-communications/concepts-text-moderation.md)
