---
title: "Aspose::Email::Mapi::MapiPropertyContainer::TryGetPropertyLong method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapipropertycontainer/trygetpropertylong/"
product: "Aspose.Email for C++"
description: "Gets the value of the specified property as Long type."
---


## TryGetPropertyLong {#trygetpropertylong}

Gets the value of the specified property as Long type. A return value indicates whether the operation succeeded.

**Returns:** true if s was converted successfully; otherwise, false.

```cpp
TryGetPropertyLong(int64_t tag, int64_t & value)
```

| Parameter | Description |
| --- | --- |
| tag | The MAPI property tag. |
| value | When this method returns, contains the value of the specified property, if the property exists. This parameter is passed uninitialized. |

