DataFormat (package schema for Windows 8)

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>
<Extension>
<ShareTarget>
<DataFormat>

Syntax

<DataFormat>

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

</DataFormat>

Attributes and Elements

Attributes

None.

Child Elements

None.

Parent Elements

Parent Element Description
ShareTarget

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

 

Examples

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

Requirements

Value
Namespace http://schemas.microsoft.com/appx/2010/manifest