Show/Hide Toolbars

RiverSoftAVG Products Help

Navigation: Code Documentation > RSCommon > RSGenerics.Collections > Classes > TRSHashTable<TKey,TValue> > Methods

TRSHashTable<TKey,TValue>.ContainsKey(TKey,TValue) Method

Scroll Prev Top Next More

Try to get value for key.

ContainsKey returns true if the given key is in the dictionary and provides its value in FoundItem. Otherwise, it returns false and FoundItem is set to the default value type of TValue. No exception is raised if the key is not in the dictionary. This is an O(1) operation.


Equivalent to TryGetValue method. Retained for backwards compatibility to TGHashTable.ContainsKey method.

Namespace: RSGenerics.Collections



Type: TKey


Type: TValue

Return Value

Type: Boolean

RiverSoftAVG Products Help © 1996-2016 Thomas G. Grubb