Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
175 lines (136 sloc) 3.45 KB
Description Search.Product title ms.assetid author ms.author keywords ms.prod ms.technology ms.topic ms.date
Declares an app extension point of type windows.shareTarget.
eADQiWindows 10XVcnh
ShareTarget
42f77354-83be-4f41-bf89-95566d026687
laurenhughes
lahugh
windows 10, uwp, schema, package manifest
windows
winrt-reference
reference
04/05/2017

ShareTarget

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

Element hierarchy

<Package>
<Applications>
<Application>
<Extensions>
<Extension>
<ShareTarget>

Syntax

<ShareTarget>

  <!-- Child elements -->
  SupportedFileTypes?,
  DataFormat{0,10000}

</ShareTarget>

Key

?   optional (zero or one)

{}   specific range of occurrences

Attributes and Elements

Attributes

None.

Child Elements

Child Element Description
[DataFormat](element-dataformat.md)

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.

[SupportedFileTypes (type: CT_CharmsSupportedFileTypes)](element-1-supportedfiletypes.md)

Defines the file types that the app can share.

 

Parent Elements

Parent Element Description
[Extension (in type: CT_ApplicationExtensions)](element-1-extension.md)

Declares an extensibility point for the app.

 

Remarks

The Share charm provides access to a list of target apps that can receive data that the user wants to share. This extensibility point enables your app to be included in the list of share targets.

ShareTarget must specify either SupportedFileTypes element, or at least one DataFormat element. It cannot omit both. The schema allows omitting both, but semantic validation will fail.

Examples

<Extension Category="windows.shareTarget">
  <ShareTarget>
    <SupportedFileTypes>
      <SupportsAnyFileType />
    </SupportedFileTypes>
    <DataFormat>Text</DataFormat>
    <DataFormat>Uri</DataFormat>
    <DataFormat>Bitmap</DataFormat>
    <DataFormat>Html</DataFormat>
    <DataFormat>http://schema.org/Book</DataFormat>
  </ShareTarget>
</Extension>

See also

Tasks Adding share

Concepts App contracts and extensions

Requirements

Namespace

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