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

# PFFriendsClientGetFriendsListAsync

> PlayFab アカウントを持つユーザーに制限された、ローカル ユーザーの現在のフレンド リストを取得します。リンクされたアカウント (Facebook、Steam) のフレンドも同様に取得されます。

PlayFab アカウントを持つユーザーに制限された、ローカル ユーザーの現在のフレンド リストを取得します。リンクされたアカウント (Facebook、Steam) のフレンドも含まれます。オプションで、一部のリンク サービスのフレンドを除外することもできます。

## 構文

```cpp theme={null}
HRESULT PFFriendsClientGetFriendsListAsync(  
    PFEntityHandle entityHandle,  
    const PFFriendsClientGetFriendsListRequest* request,  
    XAsyncBlock* async  
)  
```

### パラメーター

**`entityHandle`**   PFEntityHandle

認証に使用する PFEntityHandle。

**`request`**   [PFFriendsClientGetFriendsListRequest\*](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientgetfriendslistrequest)

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

**`async`**   XAsyncBlock\*<br />*Inout*

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

この API はすべてのプラットフォームで利用できます。ClientAddFriendAsync、ClientGetPlayerProfileAsync、ClientRemoveFriendAsync も参照してください。非同期タスクが完了したら、[PFFriendsClientGetFriendsListGetResultSize](/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize) と [PFFriendsClientGetFriendsListGetResult](/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult) を呼び出して結果を取得します。

## 要件

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

## 関連項目

[PFFriends のメンバー](/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsClientGetFriendsListGetResult](/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult.md)
- [Services C API overview - PFFriends.h](/ja-jp/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientAddFriendAsync](/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsclientaddfriendasync.md)
- [PFFriendsClientGetFriendsListGetResultSize](/ja-jp/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize.md)
- [PFFriendsClientGetFriendsListRequest](/ja-jp/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientgetfriendslistrequest.md)
