MapiItemType

MapiItemType enumeration (8 values)

Represents a MAPI item type that can be explicitly converted into an object of the corresponding class derived from the IMapiMessageItem interface.

ValueDescription
NoneNon-supported type. MapiMessage cannot be converted to an appropriate item type.
MessageAn email message. This type does not need to be converted.
ContactA contact item. Can be converted to MapiContact . if (mapiMessage.SupportedType == MapiItemType.Contact ) { var contact = ( MapiContact )mapiMessage.ToMapiMessageItem(); }
CalendarA calendar item. Can be converted to MapiCalendar . if (mapiMessage.SupportedType == MapiItemType.Calendar ) { var calendar = ( MapiCalendar )mapiMessage.ToMapiMessageItem(); }
DistListA distribution list. Can be converted to MapiDistributionList . if (mapiMessage.SupportedType == MapiItemType.DistList) { var distList = ( MapiDistributionList )mapiMessage.ToMapiMessageItem(); }
JournalA Journal entry. Can be converted to MapiJournal . if (mapiMessage.SupportedType == MapiItemType.Journal) { var journal = ( MapiJournal )mapiMessage.ToMapiMessageItem(); }
NoteA StickyNote. Can be converted to MapiNote . if (mapiMessage.SupportedType == MapiItemType.Note ) { var note = ( MapiNote )mapiMessage.ToMapiMessageItem(); }
TaskA Task item. Can be converted to MapiTask . if (mapiMessage.SupportedType == MapiItemType.Task ) { var task = ( MapiTask )mapiMessage.ToMapiMessageItem(); }