PropertySet.Insert | insert method

Applies to Windows and Windows Phone

Adds an item to the property set.

Syntax


var boolean = propertySet.insert(key, value);

Parameters

key

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

The key to insert.

value

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

The value to insert.

Return value

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

True if the method replaces a value that already exists for the key; false if this is a new key.

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