Share via


uap:DataFormat (Windows 10)

指定資料封裝格式,例如應用程式可以共用的文字或 HTML 格式。 每個應用程式在套件中都是唯一的,而且區分大小寫。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <uap:Extension>

                        <uap:ShareTarget>

                             <uap:DataFormat>

Syntax

<uap:DataFormat>
  A string with a value between 1 and 255 characters in length. DataFormat values specified by the user must be unique within the app.
</uap:DataFormat>

屬性和元素

屬性

無。

子元素

無。

父元素

父元素 描述
uap:ShareTarget 宣告 windows.shareTarget類型的應用程式擴充點。 應用程式可以共用指定的檔案類型。

範例

<uap:ShareTarget>
  <uap:SupportedFileTypes>
    <uap:FileType>.txt</uap:FileType>
    <uap:FileType>.docx</uap:FileType>
  </uap:SupportedFileTypes>
  <uap:DataFormat>Text</uap:DataFormat>
  <uap:DataFormat>Uri</uap:DataFormat>
  <uap:DataFormat>Bitmap</uap:DataFormat>
  <uap:DataFormat>Html</uap:DataFormat>
  <uap:DataFormat>http://schema.org/Book</uap:DataFormat>
</uap:ShareTarget>

規格需求

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