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

# PartyTextToSpeechProfile::SetCustomContext

> 設定與此設定檔相關聯的選用自訂指標大小內容值。

設定與此設定檔相關聯的選用自訂指標大小內容值。

## 語法

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

### 參數

**`customContext`**   void\*\
*選用*

要與設定檔物件一起儲存的任意指標大小值。

### 傳回值

PartyError

`c_partyErrorSuccess` (如果設定自訂內容成功)，否則為錯誤碼。可透過 [PartyManager::GetErrorMessage()](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md) 擷取錯誤碼的人類可讀形式。

## 備註

自訂內容通常用作「捷徑」，可簡化存取與設定檔相關聯的本機遊戲專屬記憶體，而不需要進行對應查閱。可使用 [GetCustomContext()](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getcustomcontext.md) 方法擷取此值。 \
\
&#x20;程式庫會將任何設定的值視為不透明，且只在本機裝置上有效；該值不會透過網路傳輸。

## 需求

**標頭：** Party.h

## 另請參閱

[PartyTextToSpeechProfile](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)\
[PartyTextToSpeechProfile::GetCustomContext](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getcustomcontext.md)


## Related topics

- [PartyTextToSpeechProfile::GetCustomContext](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getcustomcontext.md)
- [PartyTextToSpeechProfile](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyTextToSpeechProfile::GetIdentifier](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getidentifier.md)
- [PartyTextToSpeechProfile::GetGender](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getgender.md)
- [PartyTextToSpeechProfile::GetName](https://docs.xbox.com/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getname.md)
