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

> 擷取應用程式先前與此邀請物件相關聯的私人自訂指標大小內容值。

擷取應用程式先前與此邀請物件相關聯的私人自訂指標大小內容值。

## 語法

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

### 參數

**`customContext`**   void\*\*\
*輸出，可能傳回 nullptr*

輸出的自訂內容。

### 傳回值

PartyError

`c_partyErrorSuccess` (如果擷取自訂內容成功)，否則為錯誤碼。可透過 [PartyManager::GetErrorMessage()](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) 擷取錯誤碼的人類可讀形式。

## 備註

如果尚未設定自訂內容，`customContext` 所指向的值會設為 nullptr。

## 需求

**標頭：** Party.h

## 另請參閱

[PartyInvitation](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/partyinvitation)\
[PartyInvitation::SetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_setcustomcontext)


## Related topics

- [PartyInvitation::SetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_setcustomcontext.md)
- [PartyInvitation::GetInvitationConfiguration](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_getinvitationconfiguration.md)
- [PartyDevice::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_getcustomcontext.md)
- [PartyEndpoint::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getcustomcontext.md)
- [PartyNetwork::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getcustomcontext.md)
