> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyEndpoint::GetSharedProperty

> 共有プロパティの値を取得します。

共有プロパティの値を取得します。

## 構文

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

### パラメーター

**`key`**   [PartyString](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/typedefs.md)

取得する共有プロパティのキー。

**`value`**   [PartyDataBuffer\*](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/structs/partydatabuffer.md)\
*出力*

プロパティの値へのポインターと値データのバイト長を受け取る出力構造体。プロパティが見つからなかった場合、呼び出しは成功しますが、値は nullptr でバイト長は 0 になります。

### 戻り値

PartyError

呼び出しが成功した場合は `c_partyErrorSuccess`、それ以外の場合はエラー コード。エラー コードの人間が読める形式は、[PartyManager::GetErrorMessage()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage.md) で取得できます。

## 解説

キーに関連付けられたプロパティがない場合、結果の値は nullptr になります。返される値は、次回 [PartyManager::StartProcessingStateChanges()](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges.md) が呼び出されるまでのみ有効です。

## 要件

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

## 関連項目

[PartyEndpoint](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/partyendpoint.md)\
[PartyNetwork::CreateEndpoint](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)


## Related topics

- [PartyNetwork::CreateEndpoint](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_createendpoint.md)
- [PlayFab Party リリース ノート](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/release-notes.md)
- [PartyEndpoint::GetLocal](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getlocal.md)
- [PartyEndpoint::GetNetwork](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getnetwork.md)
- [PartyEndpoint::GetDevice](https://docs.xbox.com/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyEndpoint/methods/partyendpoint_getdevice.md)
