Jaa


IMap<K,V>.Insert(K, V) Method

Definition

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.

Applies to

See also