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

# PartyTextToSpeechProfile::GetCustomContext

> 检索应用之前与此配置文件关联的私有自定义指针大小上下文值。

检索应用之前与此配置文件关联的私有自定义指针大小上下文值。

## Syntax

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

### Parameters

**`customContext`**   void\*\*\
*output, may return nullptr*

输出的自定义上下文。

### Return value

PartyError

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

## Remarks

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

## Requirements

**Header:** Party.h

## See also

[PartyTextToSpeechProfile](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile)\
[PartyTextToSpeechProfile::SetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_setcustomcontext)


## Related topics

- [PartyTextToSpeechProfile::SetCustomContext](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_setcustomcontext.md)
- [PartyTextToSpeechProfile](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyTextToSpeechProfile::GetIdentifier](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getidentifier.md)
- [PartyTextToSpeechProfile::GetGender](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getgender.md)
- [PartyTextToSpeechProfile::GetName](/zh-CN/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getname.md)
