## KeyedCollection::Contains method


Checks if key is present in container.

```cpp
bool System::Collections::ObjectModel::KeyedCollection<TKey, TItem>::Contains(TKey key)
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | TKey | Key to look for. |

### ReturnValue

True if key is found, false otherwise.

## See Also

* Class [KeyedCollection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.PDF for C++](../../../)
