## IDictionary::ContainsKey method


Checks if container contains key.

```cpp
virtual bool System::Collections::Generic::IDictionary<TKey, TValue>::ContainsKey(const TKey &key) const =0
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const TKey\& | Key to look for. |

### ReturnValue

True if key is present, false otherwise.

## See Also

* Class [IDictionary](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
