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

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

## 要件

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

## 関連項目

[PartyInvitation](/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation)\
[PartyInvitation::GetCustomContext](/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_getcustomcontext)


## Related topics

- [PartyInvitation::GetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_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)
- [PartyEndpoint::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_setcustomcontext.md)
- [PartyChatControl::SetCustomContext](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyChatControl/methods/partychatcontrol_setcustomcontext.md)
