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

# XUserPrivilege

> XUserPrivilege

# XUserPrivilege

指定用户的特权。

## Syntax

```cpp theme={null}
enum class XUserPrivilege  : uint32_t  
{  
    CrossPlay = 185,  
    Clubs = 188,  
    Sessions = 189,  
    Broadcast = 190,  
    ManageProfilePrivacy = 196,  
    GameDvr = 198,  
    MultiplayerParties = 203,  
    CloudManageSession = 207,  
    CloudJoinSession = 208,  
    CloudSavedGames = 209,  
    SocialNetworkSharing = 220,  
    UserGeneratedContent = 247,  
    Communications = 252,  
    Multiplayer = 254,  
    AddFriends = 255,  
}  
```

## Constants

| 常量                   | 值   | 说明                   |
| -------------------- | --- | -------------------- |
| CrossPlay            | 185 | 用户可以与 XBOX 之外的用户一起玩。 |
| Clubs                | 188 | 创建、加入和参与俱乐部。         |
| Sessions             | 189 | 创建和加入非交互式多人游戏会话。     |
| Broadcast            | 190 | 直播游戏。                |
| ManageProfilePrivacy | 196 | 更改设置以显示真实姓名。         |
| GameDvr              | 198 | 上传 GameDVR。          |
| MultiplayerParties   | 203 | 加入组队。                |
| CloudManageSession   | 207 | 为其会话分配云计算资源。         |
| CloudJoinSession     | 208 | 加入云计算会话。             |
| CloudSavedGames      | 209 | 在云上保存游戏。             |
| SocialNetworkSharing | 220 | 将进度分享到社交网络。          |
| UserGeneratedContent | 247 | 访问游戏中的用户生成内容。        |
| Communications       | 252 | 使用实时语音和文本通信。         |
| Multiplayer          | 254 | 加入多人游戏会话。            |
| AddFriends           | 255 | 添加好友。                |

## Remarks

若要查看用户是否具有特定特权，请调用 [XUserCheckPrivilege](/reference/system/xuser/functions/xusercheckprivilege) 函数。
若要显示允许用户解决特权问题的用户界面，请调用 [XUserResolvePrivilegeWithUiAsync](/reference/system/xuser/functions/xuserresolveprivilegewithuiasync) 函数。这两个函数都将 XUserPrivilege 枚举用作参数。

## Requirements

**头文件：** XUser.h

**受支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## See also

[XUser](/reference/system/xuser/xuser_members)

[XUserCheckPrivilege](/reference/system/xuser/functions/xusercheckprivilege)

[XUserResolvePrivilegeWithUiAsync](/reference/system/xuser/functions/xuserresolveprivilegewithuiasync)
