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

> 检索应用之前与此邀请对象关联的私有自定义指针大小上下文值。

检索应用之前与此邀请对象关联的私有自定义指针大小上下文值。

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

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


## Related topics

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