Windows Dev Center

DataPackagePropertySet class

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

Syntax


public sealed class DataPackagePropertySet : IDictionary<String, Object>,
    IEnumerable<KeyValuePair>

Attributes

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

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
Add(KeyValuePair) [C#, VB]
Add(String) [C#, VB]
Clear Removes all items from the property set.
Contains [C#, VB]
ContainsKey [C#, VB]
CopyTo [C#, VB]
First [C++, JavaScript]Returns an iterator to enumerate the items in the property set.
GetView [C++, JavaScript]Gets an immutable view of the property set.
HasKey [C++, JavaScript]Indicates whether the DataPackagePropertySet object contains a specific property.
Insert [C++, JavaScript]Adds a property to the DataPackagePropertySet object.
Lookup [C++, JavaScript]Retrieves the value of a specific property.
Remove [C++, JavaScript]Removes an item from the property set.
Remove(KeyValuePair) [C#, VB]
Remove(String) [C#, VB]
TryGetValue [C#, VB]

 

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.

Count [C#, VB]

Read-only

Description

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

FileTypes

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

IsReadOnly [C#, VB]

Read-only

Item [C#, VB]

Read/write

Keys [C#, VB]

Read-only

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 [C++, JavaScript]

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.

Values [C#, VB]

Read-only

 

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 (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 (operating system)

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

See also

Object
IMap(String, Object)
IIterable(IKeyValuePair)

 

 

Show:
© 2015 Microsoft