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

# PFLobbyGetServerProperty

> PlayFab Multiplayer C++ SDK API を介して、PlayFab ロビー上のサーバー スコープのカスタム プロパティ値をキーで読み取るための PFLobbyGetServerProperty リファレンス。

キーを指定して、ロビー サーバー プロパティの値を取得します。

## 構文

```cpp theme={null}
HRESULT PFLobbyGetServerProperty(  
    PFLobbyHandle lobby,  
    const char* key,  
    const char** value  
)  
```

### パラメーター

**`lobby`**   PFLobbyHandle

ロビーのハンドル。

**`key`**   char\*\
*null 終端*

プロパティのキー。

**`value`**   char\*\*\
*ライブラリが割り当てる出力、nullptr を返す場合があります*

キーに関連付けられた出力値。null の出力値は、プロパティが存在しなかったことを示します。

### 戻り値

型: HRESULT

呼び出しが成功した場合は `S_OK`、それ以外の場合はエラー コード。エラー コードの人間が判読可能な形式は、[PFMultiplayerGetErrorMessage()](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/functions/pfmultiplayergeterrormessage) を通じて取得できます。

## 解説

このロビーがクライアント所有ロビーでない場合、プロパティ値は返されません。

## 要件

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

## 関連項目

[PFLobby メンバー](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PlayFab Multiplayer C++ SDK リリース ノート](/ja-jp/services/playfab/multiplayer/lobby/lobby-matchmaking-sdks/lobby-and-matchmaking-release-notes.md)
- [PFMultiplayer C/C++ API 概要 - PFLobby.h](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [PFLobbyGetServerPropertyKeys](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetserverpropertykeys.md)
- [Lobby.GetServerProperties](/ja-jp/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/Lobby/GetServerProperties.md)
- [PFLobbyGetLobbyProperty](/ja-jp/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetlobbyproperty.md)
