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

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

[PartyDevice](/services/playfab/multiplayer/networking/reference/classes/PartyDevice/partydevice)\
[PartyDevice::SetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_setcustomcontext)


## Related topics

- [PartyDevice::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_setcustomcontext.md)
- [PartyInvitation::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_getcustomcontext.md)
- [PartyEndpoint::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getcustomcontext.md)
- [PartyNetwork::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getcustomcontext.md)
- [PartyLocalUser::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalUser/methods/partylocaluser_getcustomcontext.md)
