DataPackagePropertySet class

DataPackagePropertySet class

[ Updated for UWP apps on Windows 10. For Windows 8.x articles, see the archive ]

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

Syntax


public ref class DataPackagePropertySet sealed : IMap<String, Object>,
    IIterable<IKeyValuePair>

Members

The DataPackagePropertySet class has these types of members:

Methods

The DataPackagePropertySet class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Clear Removes all items from the property set.
First Returns an iterator to enumerate the items in the property set.
GetView Gets an immutable view of the property set.
HasKey Indicates whether the DataPackagePropertySet object contains a specific property.
Insert Adds a property to the DataPackagePropertySet object.
Lookup Retrieves the value of a specific property.
Remove Removes an item from the property set.

 

Properties

The DataPackagePropertySet class has these properties.

PropertyAccess typeDescription

ApplicationListingUri

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

ApplicationName

Read/writeGets or sets the name of the app that created the DataPackage object.

ContentSourceApplicationLink

Read/writeGets or sets the application link to the content from the source app.

ContentSourceWebLink

Read/writeProvides a web link to shared content that's currently displayed in the app.

Description

Read/writeGets or sets text that describes the contents of the DataPackage.

EnterpriseId

Read/writeGets or sets the enterprise identity (see Enterprise data protection).

FileTypes

Read-onlySpecifies a vector object that contains the types of files stored in the DataPackage object.

LogoBackgroundColor

Read/writeGets or sets a background color for the sharing app's Square30x30Logo.

PackageFamilyName

Read/writeGets or sets the package family name of the source app.

Size

Read-onlyGets the number of items that are contained in the property set.

Square30x30Logo

Read/writeGets or sets the source app's logo.

Thumbnail

Read/writeGets or sets a thumbnail image for the DataPackage.

Title

Read/writeGets or sets the text that displays as a title for the contents of the DataPackage object.

 

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
IMap(String, Object)
IIterable(IKeyValuePair)

 

 

Show:
© 2016 Microsoft