MapiMessage.ToMapiMessageItem
MapiMessage.ToMapiMessageItem method
Converts the message to the item class that matches its message class, such as MapiContact for IPM.Contact.
public IMapiMessageItem ToMapiMessageItem()
Return Value
The item: a MapiContact, MapiCalendar, MapiTask, MapiNote, MapiJournal or MapiDistributionList; a copy of the message for IPM.Note.
Exceptions
| exception | condition |
|---|---|
| NotSupportedException | The message class is not one of the supported classes. |
Remarks
The supported message classes are IPM.Note, IPM.Contact, IPM.DistList, IPM.Appointment, IPM.Schedule.Meeting, IPM.Task, IPM.StickyNote and IPM.Activity. Check SupportedType before the call to avoid the exception.
See Also
- interface IMapiMessageItem
- class MapiMessage
- namespace Aspose.Email.Mapi
- assembly Aspose.Email