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

# PartyLocalChatControl::SetTextChatOptions

> 配置与此聊天控件的文本聊天关联的文本聊天选项。

配置与此聊天控件的文本聊天关联的文本聊天选项。

## Syntax

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

### Parameters

**`options`**   [PartyTextChatOptions](/services/playfab/multiplayer/networking/reference/enums/partytextchatoptions)

与文本聊天关联的选项，例如是否应翻译传入文本聊天。

**`asyncIdentifier`**   void\*\
*optional*

可选的、应用定义的指针大小上下文值，可用于将完成状态更改与此调用关联。

### Return value

PartyError

如果设置聊天文本选项的异步操作已开始，则返回 `c_partyErrorSuccess`；否则返回错误代码。如果此方法失败，则不会生成相关的状态更改。可通过 [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 检索错误代码的可读形式。

## Requirements

**Header:** Party.h

## See also

[PartyLocalChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyLocalChatControl/partylocalchatcontrol)


## Related topics

- [PartyTextChatOptions](/zh-CN/services/playfab/multiplayer/networking/reference/enums/partytextchatoptions.md)
- [PartyChatTextReceivedStateChange](/zh-CN/services/playfab/multiplayer/networking/reference/structs/partychattextreceivedstatechange.md)
- [PartyTextChatFilterLevel](/zh-CN/services/playfab/multiplayer/networking/reference/enums/partytextchatfilterlevel.md)
- [使用文本审核](/zh-CN/services/playfab/community/voice-communications/concepts-text-moderation.md)
- [PlayFab Party 发行说明](/zh-CN/services/playfab/multiplayer/networking/release-notes.md)
