uap:DataFormat (Windows 10)

アプリで共有できるテキスト形式や HTML 形式などのデータ パッケージ形式を指定します。 パッケージ内のアプリケーションごとに一意であり、大文字と小文字が区別されます。

要素の階層

<パッケージ>

    <アプリケーション>

         <Application>

              <拡張機能>

                   <uap:Extension>

                        <uap:ShareTarget>

                             <uap:DataFormat>

構文

<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
Minimum OS Version Windows 10 バージョン 1511 (ビルド 10586)