Lookup | lookup method

DataPackagePropertySet.Lookup | lookup method

Retrieves the value of a specific property.

Syntax


var object = dataPackagePropertySet.lookup(key);

Parameters

key

Type: String [JavaScript] | Platform::String [C++]

The key.

Return value

Type: Object [JavaScript] | Platform::Object [C++]

The value, if an item with the specified key exists. Use the HasKey method to determine whether the key exists.

Remarks

With the LookUp method, you specify the name of the property that you want. This name can be a property that the object supports directly, such as title, or a custom property defined by the source app.

For more info, see IMapView(String, Object).

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

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

DataPackagePropertySet

 

 

Show:
© 2016 Microsoft