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

# PartyEndpoint::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/PartyEndpoint/methods/partyendpoint_getcustomcontext) メソッドを使用して取得します。<br /><br /> 構成された値はライブラリによって不透明として扱われ、ローカル デバイス上でのみ有効です。ネットワーク経由では送信されません。

## 要件

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

## 関連項目

[PartyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)\
[PartyEndpoint::GetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getcustomcontext)


## Related topics

- [PartyEndpoint::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getcustomcontext.md)
- [PartyDevice::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_setcustomcontext.md)
- [PartyNetwork::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_setcustomcontext.md)
- [PartyInvitation::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_setcustomcontext.md)
- [PartyChatControl::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_setcustomcontext.md)
