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

# RequiresXboxLive 元素 (MicrosoftGame.config)

> MicrosoftGame.config 元素 - RequiresXboxLive

# MicrosoftGame.config 元素 - RequiresXboxLive

指定该游戏运行时是否需要 XBOX Live 连接。

## 父元素

此元素的父元素为 Game 元素。

## 要求

此元素为可选项，不要求必须设置。

## 平台

此元素仅适用于主机设备。

## 行为

* 无属性。
* 默认值为 false。
* 允许值为 true 和 false。

## 备注

* 此元素并不控制游戏是否使用 XBOX 服务。仅当游戏运行需要 XBOX 服务连接时，才应设置此元素。

## 另请参阅

[MicrosoftGame.config 参考 - 目录](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)


## Related topics

- [MicrosoftGame.config 元素参考（内容）](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
- [RequiresEraShim 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-requireserashim.md)
- [TitleId 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-titleid.md)
- [MSAAppId 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-msaappid.md)
- [VirtualMachine 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-virtualmachine.md)
