---
title: "Aspose::Email::Mapi::MapiPropertyCollection::ContainsKey method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapipropertycollection/containskey/"
product: "Aspose.Email for C++"
description: "Determines whether the collection contains a property with the specified tag."
---


## ContainsKey {#containskey}

Determines whether the collection contains a property with the specified tag.

**Returns:** true if the collection contains a property with the tag; otherwise, false

```cpp
ContainsKey(const int64_t & key)
```

| Parameter | Description |
| --- | --- |
| key | The property tag. |

