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

> このプロファイルに、オプションのカスタム ポインター サイズのコンテキスト値を構成します。

このプロファイルに、オプションのカスタム ポインター サイズのコンテキスト値を構成します。

## 構文

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

### パラメーター

**`customContext`**   void\*\
*省略可能*

プロファイル オブジェクトと共に格納する任意のポインター サイズの値。

### 戻り値

PartyError

カスタム コンテキストの構成が成功した場合は `c_partyErrorSuccess`、それ以外の場合はエラー コード。エラー コードの人間が判読可能な形式は [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) を介して取得できます。

## 解説

カスタム コンテキストは通常、マッピングのルックアップを必要とせずに、プロファイルに関連付けられているローカルなタイトル固有のメモリへのアクセスを簡素化する "ショートカット" として使用されます。値は [GetCustomContext()](/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getcustomcontext) メソッドを使用して取得します。<br /><br /> 構成された値はライブラリによって不透明として扱われ、ローカル デバイス上でのみ有効です。ネットワーク経由で送信されることはありません。

## 要件

**ヘッダー:** Party.h

## 関連項目

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


## Related topics

- [PartyTextToSpeechProfile::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getcustomcontext.md)
- [PartyTextToSpeechProfile](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/partytexttospeechprofile.md)
- [PartyTextToSpeechProfile::GetIdentifier](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getidentifier.md)
- [PartyTextToSpeechProfile::GetGender](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getgender.md)
- [PartyTextToSpeechProfile::GetName](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyTextToSpeechProfile/methods/partytexttospeechprofile_getname.md)
