> ## 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 元素 - 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 參考 - 目錄](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)
- [SupportedFileTypes 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-supportedfiletypes.md)
- [Logo 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-logo.md)
- [DisplayName 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-displayname.md)
