IMap<TKey,TValue>.Remove Method
Overloads
| Remove(TKey) |
Removes the element with the specified key from the collection. |
| Remove(TKey, TValue) |
Removes the element with the specified key and value from the collection. |
Removes the element with the specified key from the collection.
Delphi
function Remove(const key: TKey): Boolean
Parameters
- key
- TKey
The key of the element to remove.
Returns
Boolean
True if the element is successfully removed; otherwise, False . This method returns False if key was not
found.
Removes the element with the specified key and value from the collection.
Delphi
function Remove(const key: TKey; const value: TValue): Boolean
Parameters
- key
- TKey
The key of the element to remove.
- value
- TValue
The value of the element to remove.
Returns
Boolean
True if the element was successfully removed; otherwise, False . This method returns False if key was not
found.