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

> MicrosoftGame.config Element - EditFlags

# MicrosoftGame.config Element - EditFlags

指定用于控制文件类型关联的 Windows 系统警告的编辑标志。

## 父元素

此元素的父元素是 FileTypeAssociation 元素。

## 要求

此元素为可选，无需设置。

## 平台

此元素仅适用于 PC 设备。

## 行为

* 属性为 OpenIsSafe 和 AlwaysUnsafe。
* OpenIsSafe 和 AlwaysUnsafe 属性的默认值均为 false。
* OpenIsSafe 和 AlwaysUnsafe 属性的允许值为 true 和 false。

## 备注

如果 AlwaysUnsafe 设置为 true，则会出现一个 Windows 对话框，警告打开未知文件。
如果 OpenIsSafe 设置为 true，则会显示一个带有标准警告的 Windows 对话框。
如果两者都设置为 true，则以 AlwaysUnsafe 为准。

## 另请参阅

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


## Related topics

- [MicrosoftGame.config Element - FileTypeAssociation](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-filetypeassociation.md)
- [MicrosoftGame.config Element - Game](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
- [MicrosoftGame.config Element - Protocol](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-protocol.md)
- [MicrosoftGame.config Element - Executable](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-executable.md)
- [MicrosoftGame.config Element - Identity](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-identity.md)
