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

# XUserPrivilegeOptions

> XUserPrivilegeOptions

# XUserPrivilegeOptions

指定用户特权选项。

## Syntax

```cpp theme={null}
enum class XUserPrivilegeOptions  : uint32_t  
{  
    None = 0x00,  
    AllUsers = 0x01,  
}  
```

## Constants

| 常量       | 说明    |
| -------- | ----- |
| None     | 没有选项。 |
| AllUsers | 所有用户。 |

## Remarks

若要检查用户是否具有特定特权，请调用 [XUserCheckPrivilege](/reference/system/xuser/functions/xusercheckprivilege) 函数。

若要显示所需特权的解决方案用户界面，请调用 [XUserResolvePrivilegeWithUiAsync](/reference/system/xuser/functions/xuserresolveprivilegewithuiasync)。

两个函数都接受 XUserPrivilegeOptions 枚举作为参数。

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


## Related topics

- [XUserResolvePrivilegeWithUiAsync](/zh-CN/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)
- [XUserCheckPrivilege](/zh-CN/reference/system/xuser/functions/xusercheckprivilege.md)
- [XBOX 服务用户特权的客户端使用](/zh-CN/services/xbox-services/fundamentals/identity/privileges/concepts/live-user-privileges-client.md)
- [XUser](/zh-CN/reference/system/xuser/xuser_members.md)
- [PartyXblChatPermissionMaskReason](/zh-CN/services/playfab/multiplayer/networking/xblreference/enums/partyxblchatpermissionmaskreason.md)
