IMap<K,V>.Insert(K, V) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts or replaces an item in the map.
public:
bool Insert(K key, V value);
bool Insert(K const& key, V const& value);
public bool Insert(K key, V value);
Public Function Insert (key As K, value As V) As Boolean
Parameters
- key
- K
The key associated with the item to insert.
- value
- V
The item to insert.
Returns
Boolean
bool
True if an item with the specified key is an existing item that was replaced; otherwise, false.
Remarks
When programming with .NET, this interface is hidden and developers should use the System.Collections.Generic.IDictionary<TKey,TValue> interface.