---
title: "Aspose::Email::Mapi::MapiMessage::FromProperties method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapimessage/fromproperties/"
product: "Aspose.Email for C++"
description: "Creates an instance of MapiMessage from a collection of Mapi properties."
---


## FromProperties (1 of 2) {#fromproperties_1}

Creates an instance of MapiMessage from a collection of Mapi properties.

**Returns:** Returns a MapiMessage instance which is loaded from the specified properties.

```cpp
FromProperties(System::SharedPtr < MapiPropertyCollection > properties)
```

| Parameter | Description |
| --- | --- |
| properties | A collection of MapiProperty . |

---

## FromProperties (2 of 2) {#fromproperties_2}

Creates an instance of MapiMessage from a collection of Mapi properties.

**Returns:** Returns a MapiMessage instance which is loaded from the specified properties.

```cpp
FromProperties(System::SharedPtr < MapiPropertyCollection > properties, bool removeNamedProperties)
```

| Parameter | Description |
| --- | --- |
| properties | The property collection. |
| removeNamedProperties | If set to true then named properties will be removed from collection. |

