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

# PartyChatControl::GetCustomContext

> 检索先前与此聊天控件对象关联的应用私有的自定义指针大小的上下文值。

检索先前与此聊天控件对象关联的应用私有的自定义指针大小的上下文值。

## 语法

```cpp theme={null}
PartyError GetCustomContext(  
    void** customContext  
)  
```

### 参数

**`customContext`**   void\*\*
*输出,可能返回 nullptr*

输出的自定义上下文。

### 返回值

PartyError

如果检索自定义上下文成功,则返回 `c_partyErrorSuccess`;否则返回错误代码。可以通过 [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 检索错误代码的人类可读形式。

## 备注

如果尚未设置自定义上下文,则 `customContext` 指向的值设置为 nullptr。

## 要求

\*\*头文件:\*\*Party.h

## 另请参阅

[PartyChatControl](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/partychatcontrol)
[PartyChatControl::SetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_setcustomcontext)


## Related topics

- [PartyChatControl::SetCustomContext](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_setcustomcontext.md)
- [PartyXblChatUser::GetCustomContext](/zh-CN/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyChatControl::GetNetworks](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getnetworks.md)
- [PartyChatControl::GetLocal](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getlocal.md)
- [PartyChatControl::GetDevice](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_getdevice.md)
