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

指定使用者權限選項。

## 語法

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

## 常數

| 常數 | 描述 |
| - | - |
| None | 無選項。 |
| AllUsers | 所有使用者。 |

## 備註

若要檢查使用者是否具有特定權限，請呼叫 [XUserCheckPrivilege](/zh-TW/reference/system/xuser/functions/xusercheckprivilege) 函式。

若要顯示所需權限的解決方案使用者介面，請呼叫 [XUserResolvePrivilegeWithUiAsync](/zh-TW/reference/system/xuser/functions/xuserresolveprivilegewithuiasync)。

這兩個函式都接受 XUserPrivilegeOptions 列舉作為引數。

## 需求

**標頭：** XUser.h

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[XUser](/zh-TW/reference/system/xuser/xuser_members)

[XUserCheckPrivilege](/zh-TW/reference/system/xuser/functions/xusercheckprivilege)

[XUserResolvePrivilegeWithUiAsync](/zh-TW/reference/system/xuser/functions/xuserresolveprivilegewithuiasync)


## Related topics

- [XUserPrivilegeOptions](/ja-jp/reference/system/xuser/enums/xuserprivilegeoptions.md)
- [XUserResolvePrivilegeWithUiAsync](/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)
- [XUserCheckPrivilege](/reference/system/xuser/functions/xusercheckprivilege.md)
- [Client-side use of XBOX services user privileges](/services/xbox-services/fundamentals/identity/privileges/concepts/live-user-privileges-client.md)
