uap:FileType (in uap:FileTypeAssociation/uap:SupportedFileTypes)
A supported file type specified as its file type extension.
Element hierarchy
<uap:FileType>
Syntax
<uap:FileType
ContentType = 'An optional string with a value that contains two components between 1 and 127 characters in length, separated by a forward slash ("/"). It follows the RFC 4288 naming requirements.'
uap4:ShellNewFileName = 'An optional string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.'
uap4:ShellNewDisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'>
<!-- A string between 1 and 64 characters in length that must begin with a period ("."), cannot have additional periods, and cannot contain these characters: <, >, :, ", /, \, |, ?, or *. -->
</uap:FileType>
Key
?
optional (zero or one)
Attributes and elements
Attributes
Attribute | Description | Data type | Required | Default value |
---|---|---|---|---|
ContentType | The type of the content. | An optional string with a value that contains two components between 1 and 127 characters in length, separated by a forward slash (/ ). It follows the RFC 4288 naming requirements. |
No | |
uap4:ShellNewFileName | The file from the package to be copied to the location where the user initiated the Shell New command. | An optional string with a value between 1 and 256 characters in length that cannot contain these characters: < , > , : , " , | , ? , or * . |
No | |
uap4:ShellNewDisplayName | The display name of the file type that shows when a user hovers over the "New" submenu in the Windows explorer. | A string with a value between 1 and 256 characters in length. This string is localizable. | No |
Child elements
None.
Parent elements
Parent element | Description |
---|---|
uap:SupportedFileTypes (type: CT_FTASupportedFileTypes) | Defines the file types associated with the app. They are unique per package and are case sensitive. |
Related elements
The following elements have the same name as this one, but different content or attributes:
Requirements
Item | Value |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/uap/windows10 |
Minimum OS Version | Windows 10 version 1511 (Build 10586) |