uap:DataFormat (Windows 10)

Specifies a data package format such as text or HTML format that the app can share. It is unique per application in the package and is case sensitive.

Element hierarchy

<Package>
<Applications>
<Application>
<Extensions>
<uap:Extension>
<uap:ShareTarget>
<uap:DataFormat>

Syntax

<DataFormat>

  A string between 1 and 255 characters in length. DataFormat values specified by the user must be unique within the app. 

</uap:DataFormat>

Attributes and Elements

Attributes

None.

Child Elements

None.

Parent Elements

Parent Element Description
uap:ShareTarget

Declares an app extension point of type windows.shareTarget. The app can share the specified types of files.

Examples

<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>

Requirements

Namespace

http://schemas.microsoft.com/appx/manifest/uap/windows10