Share via


uap:FileType (uap:ShareTarget/uap:SupportedFileTypes)

指定為副檔名的檔案類型。 每個應用程式在套件中都是唯一的,而且區分大小寫。

元素階層

<套件>

     <應用程式>

         <應用程式>

              <擴充功能>

                   <uap:Extension>

                        <uap:ShareTarget>

                             <uap:FileOpenPicker>

                                  <uap:FileType>

                             <uap:FileSavePicker>

                                  <uap:FileType>

                             <uap:SupportedFileTypes>

                                  <uap:FileType>

Syntax

<uap:FileType>
  <!-- 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>

屬性和元素

屬性

無。

子元素

無。

父元素

父元素 描述
uap:SupportedFileTypes (類型:CT_CharmsSupportedFileTypes) 定義應用程式可以共用的檔案類型。

下列元素的名稱與這個元素相同,但內容或屬性不同:

範例

<uap:ShareTarget>
  <uap:SupportedFileTypes>
    <uap:FileType>.txt</uap:FileType>
    <uap:FileType>.html</uap:FileType>
  </uap:SupportedFileTypes>
  <uap:DataFormat>Text</uap:DataFormat>
  <uap:DataFormat>Uri</uap:DataFormat>
</uap:ShareTarget>

規格需求

Item
命名空間 http://schemas.microsoft.com/appx/manifest/uap/windows10
OS 最低版本 Windows 10版本 1511 (組建 10586)