Open main menu

RAD Studio API Documentation β

System.Generics.Collections.TDictionary.ContainsValue

Delphi

function ContainsValue(const Value: V): Boolean;

C++

bool __fastcall ContainsValue(const V Value);

Properties

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

Contents

Description

Check if value in dictionary.

ContainsValue returns true if the given value is in the dictionary and false otherwise. This is an O(n) operation, where n is the number of entries in the dictionary.

See Also

Code Examples