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

# XGameUiWebAuthenticationOptions

> XGameUiWebAuthenticationOptions

# XGameUiWebAuthenticationOptions

枚举呈现 Web 身份验证流程的选项。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
enum class XGameUiWebAuthenticationOptions : uint32_t
{
    None = 0x00,
    PreferFullscreen = 0x01
};
```

<a id="constantsSection" />

## 常量

| 常量               | 说明               |
| ---------------- | ---------------- |
| None             | 在普通对话框中显示身份验证流程。 |
| PreferFullscreen | 使用全屏显示身份验证流程。    |

<a id="remarksSection" />

## 备注

[XGameUiShowWebAuthenticationWithOptionsAsync](/reference/system/xgameui/functions/xgameuishowwebauthenticationwithoptionsasync) 函数使用此枚举。

<Note>在 PC 上不支持全屏，因此在调用 `XGameUiShowWebAuthenticationWithOptionsAsync` 时会忽略 `PreferFullscreen`。</Note>

若要获取对 `XGameUiShowWebAuthenticationWithOptionsAsync` 的调用结果，请调用 [XGameUiShowWebAuthenticationResultSize](/reference/system/xgameui/functions/xgameuishowwebauthenticationresultsize)。然后调用 [XGameUiShowWebAuthenticationResult](/reference/system/xgameui/functions/xgameuishowwebauthenticationresult)。

<a id="requirementsSection" />

## 要求

**标头：** XGameUI.h

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

<a id="seealsoSection" />

## 另请参阅

[XGameUI](/reference/system/xgameui/xgameui_members)
