---
title: "Aspose::Email::Mapi::MapiPropertyCollection::TryGetValue method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapipropertycollection/trygetvalue/"
product: "Aspose.Email for C++"
description: "Gets the property associated with the specified tag."
---


## TryGetValue {#trygetvalue}

Gets the property associated with the specified tag.

**Returns:** bool Aspose::Email::Mapi::

```cpp
TryGetValue(const int64_t & key, System::SharedPtr < MapiProperty > & value)
```

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

