System.Generics.Collections.TDictionary.Remove

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Remove(const Key: TKey);

C++

void __fastcall Remove(const TKey Key);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TDictionary

Description

Remove key-value pair.

Remove removes the given key and its associated value from the dictionary. No exception is thrown if the key is not in the dictionary. This is an O(1) operation.

An OnKeyNotify event and an OnValueNotify event occur indicating an entry was removed from the dictionary.

See Also

Code Examples