DataPackagePropertySet DataPackagePropertySet DataPackagePropertySet DataPackagePropertySet DataPackagePropertySet Class


Defines a set of properties to use with a DataPackage object.

public : sealed class DataPackagePropertySet
struct winrt::Windows::ApplicationModel::DataTransfer::DataPackagePropertySet
public sealed class DataPackagePropertySet
Public NotInheritable Class DataPackagePropertySet
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


In addition to the content being shared, each instance of a DataPackage object supports a set of properties. Target apps can use these properties to learn more about the content of the DataPackage.

This class directly supports several default properties, such as a thumbnail, a title, and a description. You can also create your own custom properties by using the Insert method or one of the Add methods. Target apps can access specific properties through the Lookup or TryGetValue methods.

Collection member lists

For JavaScript, DataPackagePropertySet supports using an index to access items.

Version history

Windows version SDK version Value added
1803 17134 ContentSourceUserActivityJson


ApplicationListingUri ApplicationListingUri ApplicationListingUri ApplicationListingUri ApplicationListingUri

Gets or sets the Uniform Resource Identifier (URI) of the app's location in the Windows Store.

ApplicationName ApplicationName ApplicationName ApplicationName ApplicationName

Gets or sets the name of the app that created the DataPackage object.

ContentSourceApplicationLink ContentSourceApplicationLink ContentSourceApplicationLink ContentSourceApplicationLink ContentSourceApplicationLink

Gets or sets the application link to the content from the source app.

ContentSourceUserActivityJson ContentSourceUserActivityJson ContentSourceUserActivityJson ContentSourceUserActivityJson ContentSourceUserActivityJson

Gets or sets the UserActivity in serialized JSON format to be shared with another app.

ContentSourceWebLink ContentSourceWebLink ContentSourceWebLink ContentSourceWebLink ContentSourceWebLink

Provides a web link to shared content that's currently displayed in the app.

Description Description Description Description Description

Gets or sets text that describes the contents of the DataPackage.

EnterpriseId EnterpriseId EnterpriseId EnterpriseId EnterpriseId

Gets or sets the enterprise identity (see Enterprise data protection).

FileTypes FileTypes FileTypes FileTypes FileTypes

Specifies a vector object that contains the types of files stored in the DataPackage object.

LogoBackgroundColor LogoBackgroundColor LogoBackgroundColor LogoBackgroundColor LogoBackgroundColor

Gets or sets a background color for the sharing app's Square30x30Logo.

PackageFamilyName PackageFamilyName PackageFamilyName PackageFamilyName PackageFamilyName

Gets or sets the package family name of the source app.

Size Size Size Size Size

Gets the number of items that are contained in the property set.

Square30x30Logo Square30x30Logo Square30x30Logo Square30x30Logo Square30x30Logo

Gets or sets the source app's logo.

Thumbnail Thumbnail Thumbnail Thumbnail Thumbnail

Gets or sets a thumbnail image for the DataPackage.

Title Title Title Title Title

Gets or sets the text that displays as a title for the contents of the DataPackage object.


Clear() Clear() Clear() Clear() Clear()

Removes all items from the property set.

First() First() First() First() First()

Returns an iterator to enumerate the items in the property set.

GetView() GetView() GetView() GetView() GetView()

Gets an immutable view of the property set.

HasKey(String) HasKey(String) HasKey(String) HasKey(String) HasKey(String)

Indicates whether the DataPackagePropertySet object contains a specific property.

Insert(String, Object) Insert(String, Object) Insert(String, Object) Insert(String, Object) Insert(String, Object)

Adds a property to the DataPackagePropertySet object.

Lookup(String) Lookup(String) Lookup(String) Lookup(String) Lookup(String)

Retrieves the value of a specific property.

Remove(String) Remove(String) Remove(String) Remove(String) Remove(String)

Removes an item from the property set.