MapiMessage.ToMapiMessageItem
MapiMessage.ToMapiMessageItem method
Convert MapiMessage to IMapiMessageItem object in dependence with MessageClass.
public IMapiMessageItem ToMapiMessageItem()
Return Value
The IMapiMessageItem interface.
Exceptions
exception | condition |
---|---|
NotSupportedException | Thrown when MessageClass doesn’t belong to IPM.Note, IPM.StickyNote, IPM.Contact, IPM.Activity, IPM.Appointment, IPM.Schedule.meeting, IPM.Task. |
Remarks
Note, that the following message classes are supported by now: IPM.Note, IPM.StickyNote, IPM.Contact, IPM.Activity, IPM.Appointment, IPM.Schedule.meeting, IPM.Task. If MapiMessage has another class, different from these ones, then NotSupportedException is thrown. If MessageClass is IPM.Note, then MapiMessage copy is returned.
See Also
- interface IMapiMessageItem
- class MapiMessage
- namespace Aspose.Email.Mapi
- assembly Aspose.Email