Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes > TRSDictionary<TKey,TValue> > Methods
TRSDictionary<TKey,TValue>.ContainsKey(TKey) Method
Test if key in dictionary.
ContainsKey returns true if the given key is in the dictionary and false otherwise. This is an O(1) operation.
Namespace: RSGenerics.Collections
Delphi
public function ContainsKey(const Key: TKey): Boolean;
Parameters
Key
Type: TKey
Type: Boolean
•RSGenerics.Collections.TRSDictionary<TKey,TValue>.AddOrSetValue(TKey,TValue)
•RSGenerics.Collections.TRSDictionary<TKey,TValue>.TryGetValue(TKey,TValue)
•RSGenerics.Collections.TRSDictionary<TKey,TValue>.ContainsValue(TValue)
•TRSDictionary<TKey,TValue>
•RSGenerics.Collections