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

# PartyXblXboxUserIdToPlayFabEntityIdMapping

> PartyXblXboxUserIdToPlayFabEntityIdMapping 结构的参考，将 XBOX Live 用户 ID 与其链接的 PlayFab Party 实体 ID 配对。

XBOX Live 用户 ID 与 PlayFab 实体 ID 之间的映射。

## 语法

```cpp theme={null}
struct PartyXblXboxUserIdToPlayFabEntityIdMapping {  
    uint64_t xboxLiveUserId;  
    PartyString playfabEntityId;  
}  
```

### 成员

**`xboxLiveUserId`**   uint64\_t

XBOX Live 用户 ID。

**`playfabEntityId`**   [PartyString](/services/playfab/multiplayer/networking/reference/typedefs)

PlayFab 实体 ID。

在 XBOX Live 用户没有链接的 PlayFab 帐户的情况下，此值可能为空字符串。首次调用 [PartyXblManager::LoginToPlayFab](/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_logintoplayfab) 时会自动创建并链接一个 PlayFab 帐户。PlayFab SDK 提供的 **LoginWithXbox** API 也可用于链接帐户。

## 要求

**头文件：** PartyXboxLive.h

## 另请参阅

[PartyXboxLive 成员](/services/playfab/multiplayer/networking/xblreference/partyxboxlive_members)


## Related topics

- [PartyXblGetEntityIdsFromXboxLiveUserIdsCompletedStateChange](/zh-CN/services/playfab/multiplayer/networking/xblreference/structs/partyxblgetentityidsfromxboxliveuseridscompletedstatechange.md)
- [PartyXboxLive C/C++ API 概览](/zh-CN/services/playfab/multiplayer/networking/xblreference/partyxboxlive_members.md)
- [适用于 PlayFab Party 的 XBOX Live 辅助库](/zh-CN/services/playfab/multiplayer/networking/party-xbox-live-guide.md)
- [PartyXblChatUser::GetXboxUserId](/zh-CN/services/playfab/multiplayer/networking/xblreference/classes/PartyXblChatUser/methods/partyxblchatuser_getxboxuserid.md)
- [PartyXblManager::GetEntityIdsFromXboxLiveUserIds](/zh-CN/services/playfab/multiplayer/networking/xblreference/classes/PartyXblManager/methods/partyxblmanager_getentityidsfromxboxliveuserids.md)
