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

> Gets the value of a shared property.

Gets the value of a shared property.

## Syntax

```cpp theme={null}
PartyError GetSharedProperty(  
    PartyString key,  
    PartyDataBuffer* value  
)  
```

### Parameters

**`key`**   [PartyString](/services/playfab/multiplayer/networking/reference/typedefs)

The key of the shared property to retrieve.

**`value`**   [PartyDataBuffer\*](/services/playfab/multiplayer/networking/reference/structs/partydatabuffer)\
*output*

An output struct that receives a pointer to the property's value and the length in bytes of the value data. If the property was not found, the call succeeds, but the value is nullptr and the byte length is 0.

### Return value

PartyError

`c_partyErrorSuccess` if the call succeeded or an error code otherwise. The human-readable form of the error code can be retrieved via [PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage).

## Remarks

If there is no property associated with the key, the resulting value is nullptr. The returned value is only valid until the next call to [PartyManager::StartProcessingStateChanges()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges).

## Requirements

**Header:** Party.h

## See also

[PartyEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint)\
[PartyNetwork::CreateEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint)


## Related topics

- [PartyNetwork::CreateEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
- [PlayFab Party Release Notes](/services/playfab/multiplayer/networking/release-notes.md)
- [PartyEndpoint::GetLocal](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getlocal.md)
- [PartyEndpoint::GetDevice](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
- [PartyEndpoint::GetNetwork](/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getnetwork.md)
