DataPackagePropertySetView
DataPackagePropertySetView
DataPackagePropertySetView
DataPackagePropertySetView
DataPackagePropertySetView
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
Gets the set of properties of a DataPackageView object.
public : sealed class DataPackagePropertySetView : IDataPackagePropertySetView, IDataPackagePropertySetView2, IDataPackagePropertySetView3, IIterable<IKeyValuePair<Platform::String, Platform::Object>>, IMapView<Platform::String, Platform::Object>
struct winrt::Windows::ApplicationModel::DataTransfer::DataPackagePropertySetView : IDataPackagePropertySetView, IDataPackagePropertySetView2, IDataPackagePropertySetView3, IIterable<IKeyValuePair<Platform::String, Platform::Object>>, IMapView<Platform::String, Platform::Object>
public sealed class DataPackagePropertySetView : IDataPackagePropertySetView, IDataPackagePropertySetView2, IDataPackagePropertySetView3, IEnumerable<KeyValuePair<String, Object>>, IReadOnlyDictionary<String, Object>
Public NotInheritable Class DataPackagePropertySetView Implements IDataPackagePropertySetView, IDataPackagePropertySetView2, IDataPackagePropertySetView3, IEnumerable<KeyValuePair<String, Object>>, IReadOnlyDictionary<String, Object>
// This class does not provide a public constructor.
- Attributes
Device family |
Windows 10 (introduced v10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Examples
if (shareOperation.data.contains(Windows.ApplicationModel.DataTransfer.StandardDataFormats.text)) {
var title = shareOperation.data.properties.title;
var description = shareOperation.data.properties.description;
}
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.
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 app, 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.