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

# XUserPrivilege

> XUserPrivilege

# XUserPrivilege

ユーザーの特権を指定します。

## 構文

```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,  
}  
```

## 定数

| 定数 | 値 | 説明 |
| - | - | - |
| 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 | フレンドを追加できます。 |

## 解説

ユーザーが特定の特権を持っているかを確認するには、[XUserCheckPrivilege](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xusercheckprivilege.md) 関数を呼び出します。
特権に関する問題をユーザーが解決できるユーザー インターフェイスを表示するには、[XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md) 関数を呼び出します。どちらの関数も XUserPrivilege 列挙型を引数として使用します。

## 要件

**ヘッダー:** XUser.h

**サポートされているプラットフォーム:** Windows、XBOX One ファミリ本体、XBOX Series 本体

## 関連項目

[XUser](https://docs.xbox.com/ja-jp/reference/system/xuser/xuser_members.md)

[XUserCheckPrivilege](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xusercheckprivilege.md)

[XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)


## Related topics

- [XUserPrivilegeDenyReason](https://docs.xbox.com/ja-jp/reference/system/xuser/enums/xuserprivilegedenyreason.md)
- [XUserResolvePrivilegeWithUiAsync](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xuserresolveprivilegewithuiasync.md)
- [XBOX services ユーザー特権のクライアント側での使用](https://docs.xbox.com/ja-jp/services/xbox-services/fundamentals/identity/privileges/concepts/live-user-privileges-client.md)
- [XUserCheckPrivilege](https://docs.xbox.com/ja-jp/reference/system/xuser/functions/xusercheckprivilege.md)
- [XUser (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xuser/xuser_members.md)
