Interface IMapiMessageItem

IMapiMessageItem interface

The common interface of Outlook items: messages, appointments, tasks, contacts, notes, journal entries and distribution lists.

public interface IMapiMessageItem

Properties

NameDescription
Body { get; set; }Gets or sets the plain-text body of the item.
MessageClass { get; }Gets the message class of the item, such as IPM.Note or IPM.Contact.
Subject { get; set; }Gets or sets the subject of the item.
SupportedType { get; }Gets the type of the item, as determined by its message class.

Remarks

Implemented by MapiMessage and by the item classes derived from MapiMessageItemBase. ToMapiMessageItem returns the item class that matches the message class, so check SupportedType or the run-time type of the result.

See Also