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

> MicrosoftGame.config Element - FileType

# MicrosoftGame.config Element - FileType

指定要作为 SupportedFileTypes 元素一部分使用的文件类型扩展名。

## 父元素

此元素的父元素是 SupportedFileTypes 元素。

## 要求

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

## 平台

此元素仅适用于 PC 设备。

## 行为

* 属性为 ContentType。
* FileType 或 ContentType 属性无默认值。
* FileType 允许值为最多 64 个字符的字符串，ContentType 属性允许符合 [RFC 4288](https://www.ietf.org/rfc/rfc4288.txt) 标准的字符串。

## 备注

FileType 的值为一个点后跟最多 64 个非空白字符，表示文件扩展名。示例包括 .map 或 .world。

## 另请参阅

[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 元素 - SupportedFileTypes](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-supportedfiletypes.md)
- [MicrosoftGame.config Element - Logo](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-logo.md)
- [MicrosoftGame.config Element - DisplayName](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-displayname.md)
- [MicrosoftGame.config Element - EditFlags](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-editflags.md)
