======Метод IDictionary.ContainsKey(TKey)====== Определяет, содержится ли элемент с указанным ключом в [[developers:references:system.collections.generic.idictionary_2|IDictionary]] . * **Пространство имен:** [[developers:references:system.collections.generic|System.Collections.Generic]] * **Сборка:** mscorlib (в mscorlib.dll) =====Синтаксис===== public virtual bool ContainsKey(TKey key) **Параметры** * //key// * Тип: TKey * Ключ, который требуется найти в [[developers:references:system.collections.generic.idictionary_2|IDictionary]] . **Возвращаемое значение** * Тип: [[developers:references:system.boolean|System.Boolean]] * Значение true, если в [[developers:references:system.collections.generic.idictionary_2|IDictionary]] содержится элемент с данным ключом; в противном случае — значение false.