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

# FileType 元素 (MicrosoftGame.config)

> 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 参考 - 目录](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)
- [FileTypeAssociation 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-filetypeassociation.md)
- [SupportedFileTypes 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-supportedfiletypes.md)
- [Logo 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-logo.md)
- [InfoTip 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-infotip.md)
