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

# 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\*](/services/playfab/api-references/c/pffriendstypes/structs/pffriendsservergetfriendslistrequest)

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

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

非同期操作用の XAsyncBlock。

### 戻り値

型: HRESULT

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

## 解説

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

## 要件

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

## 関連項目

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