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

## 另請參閱

[PartyEndpoint](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)\
[PartyEndpoint::SetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_setcustomcontext)


## Related topics

- [PartyEndpoint::SetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_setcustomcontext.md)
- [PartyNetwork::DestroyEndpoint](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_destroyendpoint.md)
- [PartyDevice::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyDevice/methods/partydevice_getcustomcontext.md)
- [PartyInvitation::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyInvitation/methods/partyinvitation_getcustomcontext.md)
- [PartyNetwork::GetCustomContext](/zh-TW/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getcustomcontext.md)
