Working with MapiTask in PST
Contents
[
Hide
]
Adding MapiTask to PST
With Aspose.Email you can add MapiTask to the Tasks subfolder of a PST file that you have created or loaded. Below are the steps to add MapiTask to a PST:
- Create a MapiTask object.
- Set the MapiTask properties using constructor and different methods.
- Create a PST using the PersonalStorage.Create() method.
- Create a pre-defined folder (Tasks) at the root of the PST file by accessing the Root folder and then calling the AddMapiMessageItem() method.
The following code snippet shows you how to create a MapiTask and then add it to the tasks folder of a newly created PST file.