> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/privacy_c/structs/xblpermissiondenyreasondetails.md)

## 要求

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

## 另请参阅

[privacy\_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/privacy_c/privacy_c_members.md)


## Related topics

- [XblPermissionDenyReasonDetails](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/privacy_c/structs/xblpermissiondenyreasondetails.md)
- [privacy_c](https://docs.xbox.com/zh-CN/reference/live/xsapi-c/privacy_c/privacy_c_members.md)
- [XUserPrivilege](https://docs.xbox.com/zh-CN/reference/system/xuser/enums/xuserprivilege.md)
- [XUserCheckPrivilege](https://docs.xbox.com/zh-CN/reference/system/xuser/functions/xusercheckprivilege.md)
- [XUserPrivilegeOptions](https://docs.xbox.com/zh-CN/reference/system/xuser/enums/xuserprivilegeoptions.md)
