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

# PFFriendsClientAddFriendGetResult

> 取得成功的 PFFriendsClientAddFriendAsync 呼叫的結果。

取得成功的 PFFriendsClientAddFriendAsync 呼叫的結果。

## 語法

```cpp theme={null}
HRESULT PFFriendsClientAddFriendGetResult(  
    XAsyncBlock* async,  
    PFFriendsAddFriendResult* result  
)  
```

### 參數

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

用於非同步作業的 XAsyncBlock。

**`result`**   [PFFriendsAddFriendResult\*](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsaddfriendresult)\
*output*

將填入結果的 PFFriendsAddFriendResult 物件。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。如果服務呼叫失敗，結果將為 E\_PF\_USERS\_ALREADY\_FRIENDS 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFFriends.h

## 另請參閱

[PFFriends 成員](/zh-TW/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsClientAddFriendAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsclientaddfriendasync.md)
- [服務 C API 概觀 - PFFriends.h](/zh-TW/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientGetFriendsListAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistasync.md)
- [PFFriendsAddFriendResult](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsaddfriendresult.md)
- [PFFriendsClientAddFriendRequest](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientaddfriendrequest.md)
