---
title: "Aspose::Email::Mapi::MapiMessage::ImportCalendarToMapiMessage method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapimessage/importcalendartomapimessage/"
product: "Aspose.Email for C++"
description: "Imports the iCalendar to MapiMessage ."
---


## ImportCalendarToMapiMessage (1 of 2) {#importcalendartomapimessage_1}

Imports the iCalendar to MapiMessage .

**Returns:** The MapiMessage that represents meeting request in outlook format.

```cpp
ImportCalendarToMapiMessage(System::SharedPtr < Calendar::Model::CalendarObject > calendarObject, OutlookMessageFormat format, System::String from)
```

| Parameter | Description |
| --- | --- |
| calendarObject | The calendar. |
| format |  |
| from |  |

---

## ImportCalendarToMapiMessage (2 of 2) {#importcalendartomapimessage_2}

**Returns:** static System::SharedPtr < MapiMessage > Aspose::Email::Mapi::

```cpp
ImportCalendarToMapiMessage(System::SharedPtr < Calendar::Model::CalendarObject > calendarObject, OutlookMessageFormat format, System::String from, int32_t cp)
```

| Parameter | Description |
| --- | --- |
| calendarObject |  |
| format |  |
| from |  |
| cp |  |

