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

# XblPrivilege

> XblPrivilege

# XblPrivilege

控制用户的特权。

## 语法

```cpp theme={null}
enum class XblPrivilege  : uint32_t  
{  
    Unknown = 0,  
    AllowIngameVoiceCommunications = 205,  
    AllowVideoCommunications = 235,  
    AllowProfileViewing = 249,  
    AllowCommunications = 252,  
    AllowMultiplayer = 254,  
    AllowAddFriend = 255  
}  
```

## 常量

| 常量                             | 说明                          |
| ------------------------------ | --------------------------- |
| Unknown                        | 无法识别的特权（不是下列值之一）。           |
| AllowIngameVoiceCommunications | 控制用户查看其他用户的个人资料（简介、格言等）的能力。 |
| AllowVideoCommunications       | 控制用户通过视频与其他用户进行通信的能力。       |
| AllowProfileViewing            | 控制用户查看其他用户的个人资料（简介、格言等）的能力。 |
| AllowCommunications            | 控制用户与其他用户进行通信的能力。           |
| AllowMultiplayer               | 控制用户加入其他用户的组队的能力。           |
| AllowAddFriend                 | 控制用户添加好友的能力。                |

## 成员归属

[XblPermissionDenyReasonDetails](/reference/live/xsapi-c/privacy_c/structs/xblpermissiondenyreasondetails)

## 要求

**头文件：** privacy\_c.h

## 另请参阅

[privacy\_c](/reference/live/xsapi-c/privacy_c/privacy_c_members)


## Related topics

- [XblPermissionDenyReasonDetails](/zh-CN/reference/live/xsapi-c/privacy_c/structs/xblpermissiondenyreasondetails.md)
- [XUserPrivilege](/zh-CN/reference/system/xuser/enums/xuserprivilege.md)
- [XUserCheckPrivilege](/zh-CN/reference/system/xuser/functions/xusercheckprivilege.md)
- [XUserPrivilegeOptions](/zh-CN/reference/system/xuser/enums/xuserprivilegeoptions.md)
- [PartyXblChatPermissionMaskReason](/zh-CN/services/playfab/multiplayer/networking/xblreference/enums/partyxblchatpermissionmaskreason.md)
