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.

PropertySet.HasKey | hasKey method

Applies to Windows and Windows Phone

Indicates whether the property set has an item with the specified key.

Syntax


var boolean = propertySet.hasKey(key);

Parameters

key

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

The key.

Return value

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

True if the property set has an item with the specified key; otherwise, false.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation.Collections
Windows::Foundation::Collections [C++]

Metadata

Windows.winmd

See also

PropertySet

 

 

Show:
© 2014 Microsoft