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

# PFFriendsServerAddFriendRequest

> PFFriendsServerAddFriendRequest 資料模型。

PFFriendsServerAddFriendRequest 資料模型。

## 語法

```cpp theme={null}
typedef struct PFFriendsServerAddFriendRequest {  
    const char* friendEmail;  
    const char* friendPlayFabId;  
    const char* friendTitleDisplayName;  
    const char* friendUsername;  
    const char* playFabId;  
} PFFriendsServerAddFriendRequest;  
```

### 成員

**`friendEmail`**   const char\*<br />*is null-terminated*

（選擇性）要新增之使用者的電子郵件地址。

**`friendPlayFabId`**   const char\*<br />*is null-terminated*

（選擇性）要新增之使用者的 PlayFab 識別碼。

**`friendTitleDisplayName`**   const char\*<br />*is null-terminated*

（選擇性）要新增之使用者的 Title 專屬顯示名稱。

**`friendUsername`**   const char\*<br />*is null-terminated*

（選擇性）要新增之使用者的 PlayFab 使用者名稱。

**`playFabId`**   const char\*<br />*is null-terminated*

要新增好友之玩家的 PlayFab 識別碼。

## 需求

**標頭：** PFFriendsTypes.h

## 另請參閱

[PFFriendsTypes 成員](/zh-TW/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members)


## Related topics

- [PFFriendsServerAddFriendAsync](/zh-TW/services/playfab/api-references/c/pffriends/functions/pffriendsserveraddfriendasync.md)
- [服務 C API 概觀 - PFFriendsTypes.h](/zh-TW/services/playfab/api-references/c/pffriendstypes/pffriendstypes_members.md)
- [PFFriendsClientAddFriendRequest](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientaddfriendrequest.md)
- [PFFriendsServerRemoveFriendRequest](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsserverremovefriendrequest.md)
- [PFFriendsServerGetFriendsListRequest](/zh-TW/services/playfab/api-references/c/pffriendstypes/structs/pffriendsservergetfriendslistrequest.md)
