DataPackagePropertySet DataPackagePropertySet DataPackagePropertySet DataPackagePropertySet DataPackagePropertySet Class

Definition

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

public : sealed class DataPackagePropertySet : IDataPackagePropertySet, IDataPackagePropertySet2, IDataPackagePropertySet3, IDataPackagePropertySet4, IIterable<IKeyValuePair<Platform::String, Platform::Object>>, IMap<Platform::String, Platform::Object>
struct winrt::Windows::ApplicationModel::DataTransfer::DataPackagePropertySet : IDataPackagePropertySet, IDataPackagePropertySet2, IDataPackagePropertySet3, IDataPackagePropertySet4, IIterable<IKeyValuePair<Platform::String, Platform::Object>>, IMap<Platform::String, Platform::Object>
public sealed class DataPackagePropertySet : IDataPackagePropertySet, IDataPackagePropertySet2, IDataPackagePropertySet3, IDataPackagePropertySet4, IEnumerable<KeyValuePair<String, Object>>, IDictionary<String, Object>
Public NotInheritable Class DataPackagePropertySet Implements IDataPackagePropertySet, IDataPackagePropertySet2, IDataPackagePropertySet3, IDataPackagePropertySet4, IEnumerable<KeyValuePair<String, Object>>, IDictionary<String, Object>
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

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

Remarks

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.

Properties

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.

Item[TKey] Item[TKey] Item[TKey] Item[TKey] Item[TKey]

Gets or sets the element with the specified key.

Keys Keys Keys Keys Keys

Gets an System.Collections.Generic.ICollection`1 containing the keys of the System.Collections.Generic.IDictionary`2.

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.

Values Values Values Values Values

Gets an System.Collections.Generic.ICollection`1 containing the values in the System.Collections.Generic.IDictionary`2.

Methods

Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue) Add(TKey, TValue)

Adds an element with the provided key and value to the System.Collections.Generic.IDictionary`2.

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

Removes all items from the property set.

ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey) ContainsKey(TKey)

Determines whether the System.Collections.Generic.IDictionary`2 contains an element with the specified key.

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

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

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

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(T) Remove(T) Remove(T) Remove(T) Remove(T)

Removes the element with the specified key from the System.Collections.Generic.IDictionary`2.

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

Removes an item from the property set.

TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue) TryGetValue(TKey, out TValue)

Gets the value associated with the specified key.