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

# EditFlags 元素 (MicrosoftGame.config)

> MicrosoftGame.config 元素 - EditFlags

# MicrosoftGame.config 元素 - EditFlags

指定用來控制檔案類型關聯之 Windows 系統警告的編輯旗標。

## 父系

此元素的父系是 FileTypeAssociation 元素。

## 需求

此元素為選擇性，不需要設定。

## 平台

此元素僅適用於 PC 裝置。

## 行為

* 屬性為 OpenIsSafe 和 AlwaysUnsafe。
* OpenIsSafe 和 AlwaysUnsafe 屬性的預設值皆為 false。
* OpenIsSafe 和 AlwaysUnsafe 屬性允許的值為 true 和 false。

## 備註

如果 AlwaysUnsafe 設定為 true，將會出現 Windows 對話方塊，警告開啟未知檔案的風險。
如果 OpenIsSafe 設定為 true，會出現含有標準警告的 Windows 對話方塊。
如果兩者都設定為 true，則以 AlwaysUnsafe 為優先。

## 另請參閱

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


## Related topics

- [MicrosoftGame.config 元素參考 (內容)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc.md)
- [FileTypeAssociation 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-filetypeassociation.md)
- [Game 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-game.md)
- [SCID 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-scid.md)
- [Shareable 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-shareable.md)
