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

> MicrosoftGame.config 元素 - FileType

# MicrosoftGame.config 元素 - 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 參考 - 目錄](/zh-TW/reference/system/microsoftgameconfig/elements/gc-microsoftgameconfig-toc)


## Related topics

- [MicrosoftGame.config Element - FileType](/zh-CN/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-filetype.md)
- [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 요소 - FileType](/ko/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-filetype.md)
- [MicrosoftGame.config 要素 - FileType](/ja-jp/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-filetype.md)
