MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataPackagePropertySetView class

Gets the set of properties of a DataPackageView object.

Syntax


var dataPackagePropertySetView = dataPackageView.properties;

Members

The DataPackagePropertySetView class has these types of members:

Methods

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

MethodDescription
First Returns an iterator to enumerate the items in the property set.
HasKey Indicates whether the DataPackagePropertySetView object contains a specific property.
Lookup Retrieves the value of a specific property.
Split Divides the object into two views

 

Properties

The DataPackagePropertySetView class has these properties.

PropertyAccess typeDescription

ApplicationListingUri

Read-only

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

ApplicationName

Read-only

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

ContentSourceApplicationLink

Read-only

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

ContentSourceWebLink

Read-only

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

Description

Read-only

Gets the text that describes the contents of the DataPackage.

EnterpriseId

Read-only

Gets or sets the enterprise Id.

FileTypes

Read-only

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

LogoBackgroundColor

Read-only

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

PackageFamilyName

Read-only

Gets the package family name of the source app.

Size

Read-only

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

Square30x30Logo

Read-only

Gets the source app's logo.

Thumbnail

Read-only

Gets the thumbnail image for the DataPackageView.

Title

Read-only

Gets the text that displays as a title for the contents of the DataPackagePropertySetView object.

 

Remarks

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

This class directly supports several default properties, such as a thumbnail, a title, and a description. Target apps can access specific properties through the Lookup or TryGetValue methods.

Note  

When a share target receives shared content, it also receives certain properties associated with the source app as a part of the DataPackageView. In Windows Runtime apps, several of these properties, such as ApplicationListingUri, ApplicationName, and PackageFamilyName, will be set by the operating system. In Windows Phone Silverlight apps, however, these properties will not be automatically filled and must be set manually.

Collection member lists

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

Examples


if (shareOperation.data.contains(Windows.ApplicationModel.DataTransfer.StandardDataFormats.text)) {
    var title = shareOperation.data.properties.title;
    var description = shareOperation.data.properties.description;
}


Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

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.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

Attributes

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

See also

Object
IMapView(String, Object)
IIterable(IKeyValuePair)

 

 

Show:
© 2016 Microsoft