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

> Retrieves the app's private, custom pointer-sized context value previously associated with this profile.

Retrieves the app's private, custom pointer-sized context value previously associated with this profile.

## Syntax

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

### Parameters

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

The output custom context.

### Return value

PartyError

`c_partyErrorSuccess` if retrieving the custom context succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

If no custom context has been set yet, the value pointed to by `customContext` is set to 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](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_setcustomcontext.md)
- [PartyTextToSpeechProfile](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyTextToSpeechProfile::GetIdentifier](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getidentifier.md)
- [PartyTextToSpeechProfile::GetGender](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getgender.md)
- [PartyTextToSpeechProfile::GetName](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getname.md)
