Map::Insert Method

Adds the specified key-value pair to the current Map object.

virtual bool Insert(
   K key, 
   V value
);

key

The key portion of the key-value pair. The type of key is typename K.

value

The value portion of the key-value pair. The type of value is typename V.

true if the key of an existing element in the current Map matches key and the value portion of that element is set to value. false if no existing element in the current Map matches key and the key and value parameters are made into a key-value pair and then added to the current Map.

Header: collection.h

Namespace: Platform::Collections

Show:
© 2014 Microsoft