---
title: "Aspose::Email::Mapi::MapiTask::ToIcalendar method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapitask/toicalendar/"
product: "Aspose.Email for C++"
description: "ToIcalendar of MapiTask."
---


## ToIcalendar {#toicalendar}

**Returns:** System::SharedPtr <Calendar::Model::CalendarObject> Aspose::Email::Mapi::

```cpp
ToIcalendar(System::SharedPtr < Calendar::Model::Property::MethodProperty > method)
```

| Parameter | Description |
| --- | --- |
| method |  |

