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

# PartyLocalUser::GetCustomContext

> 以前にこのローカル ユーザー オブジェクトに関連付けられた、アプリのプライベートなカスタムのポインター サイズのコンテキスト値を取得します。

以前にこのローカル ユーザー オブジェクトに関連付けられた、アプリのプライベートなカスタムのポインター サイズのコンテキスト値を取得します。

## 構文

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

### パラメーター

**`customContext`**   void\*\*\
*出力、nullptr を返す場合があります*

出力するカスタム コンテキスト。

### 戻り値

PartyError

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

## 解説

カスタム コンテキストがまだ設定されていない場合、`customContext` が指す値は nullptr に設定されます。

## 要件

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

## 関連項目

[PartyLocalUser](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/partylocaluser.md)\
[PartyLocalUser::SetCustomContext](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/methods/partylocaluser_setcustomcontext.md)


## Related topics

- [PartyLocalUser::SetCustomContext](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/methods/partylocaluser_setcustomcontext.md)
- [PartyXblChatUser::GetCustomContext](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getcustomcontext.md)
- [PartyInvitation::GetCustomContext](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_getcustomcontext.md)
- [PartyDevice::GetCustomContext](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_getcustomcontext.md)
- [PartyNetwork::GetCustomContext](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getcustomcontext.md)
