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

# PFFriendsServerGetFriendsListAsync

> PlayFabId を持つユーザーの現在のフレンドを取得します。対象は PlayFab アカウントを持つユーザーに限定されます。リンクされたアカウント (Facebook、Steam) からのフレンドも含まれます。

PlayFabId を持つユーザーの現在のフレンドを取得します。対象は PlayFab アカウントを持つユーザーに限定されます。リンクされたアカウント (Facebook、Steam) からのフレンドも含まれます。必要に応じて、一部のリンク済みサービスのフレンドを除外することもできます。

## 構文

```cpp theme={null}
HRESULT PFFriendsServerGetFriendsListAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFFriendsServerGetFriendsListRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`titleEntityHandle`**   PFEntityHandle

PFAuthenticationGetEntityWithSecretKeyAsync を使用して取得したタイトル エンティティの PFEntityHandle。

**`request`**   [PFFriendsServerGetFriendsListRequest\*](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriendstypes/structs/pffriendsservergetfriendslistrequest.md)

値が設定されたリクエスト オブジェクト。

**`async`**   XAsyncBlock\*\
*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

この API 操作の結果コード。

## 解説

この API は Win32、Linux、macOS で利用できます。ServerAddFriendAsync、ServerGetPlayerProfileAsync、ServerRemoveFriendAsync、ServerSetFriendTagsAsync も参照してください。非同期タスクが完了したら、[PFFriendsServerGetFriendsListGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresultsize.md) と [PFFriendsServerGetFriendsListGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md) を呼び出して結果を取得します。

## 要件

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

## 関連項目

[PFFriends のメンバー](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/pffriends_members.md)


## Related topics

- [PFFriendsServerGetFriendsListGetResult](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresult.md)
- [Services C API overview - PFFriends.h](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsServerAddFriendAsync](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsserveraddfriendasync.md)
- [Get Friends List](https://docs.xbox.com/api-reference/friend-list-management/get-friends-list.md)
- [PFFriendsServerGetFriendsListGetResultSize](https://docs.xbox.com/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsservergetfriendslistgetresultsize.md)
