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

# MicrosoftGame.config 元素 - RequiresXboxLive

> MicrosoftGame.config 元素 - RequiresXboxLive

# MicrosoftGame.config 元素 - RequiresXboxLive

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

## 父元素

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

## 要求

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

## 平台

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

## 行为

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

## 备注

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

## 另请参阅

[MicrosoftGame.config 参考 - 目录](/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config 元素 - RequiresEraShim](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-requireserashim.md)
- [MicrosoftGame.config 元素 - TitleId](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-titleid.md)
- [MicrosoftGame.config 元素 - VirtualMachine](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-virtualmachine.md)
- [MicrosoftGame.config 元素 - XboxCompatibility](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-xboxcompatibility.md)
- [MicrosoftGame.config 元素 - Resource](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-resource.md)
