ContainsKey method (dictionary)

Tests if this dictionary contains the specified key.

Syntax

dictionary.ContainsKey(key)

Returns True if dictionary contains key, otherwise False.