CommonMessagePropertyId

CommonMessagePropertyId

Overview

CommonMessagePropertyId is an enumeration of the MAPI property identifiers most commonly used when reading and writing .msg files. Each value corresponds to the low 16 bits of a MAPI property tag. Use these constants with MapiMessage.SetProperty, MapiMessage.GetPropertyValue, and MapiPropertyCollection to avoid hard-coding raw hex property IDs.

Base type: ushort. Use these constants instead of raw hex literals to make message-handling code self-documenting and resistant to accidental transposition errors.

Members

NameDescription
MessageClassPR_MESSAGE_CLASS (0x001A): message type identifier string (e.g. IPM.Note).
TransportMessageHeadersPR_TRANSPORT_MESSAGE_HEADERS (0x007D): raw RFC 2822 Internet message headers.
SubjectPR_SUBJECT (0x0037): message subject line.
DisplayToPR_DISPLAY_TO (0x0E04): comma-separated display names of To recipients.
DisplayCcPR_DISPLAY_CC (0x0E03): comma-separated display names of Cc recipients.
DisplayBccPR_DISPLAY_BCC (0x0E02): comma-separated display names of Bcc recipients.
InternetMessageIdPR_INTERNET_MESSAGE_ID (0x1035): RFC 2822 Message-ID header value.
MessageFlagsPR_MESSAGE_FLAGS (0x0E07): bitmask of message status flags (read, unsent, submitted, etc.).
InternetCodepagePR_INTERNET_CODEPAGE (0x3FDE): ANSI code page for 8-bit string encoding.
SenderNamePR_SENDER_NAME (0x0C1A): display name of the message sender.
SenderAddressTypePR_SENDER_ADDRTYPE (0x0C1E): address type of the sender (e.g. SMTP).
SenderEmailAddressPR_SENDER_EMAIL_ADDRESS (0x0C1F): SMTP address of the sender.
MessageDeliveryTimePR_MESSAGE_DELIVERY_TIME (0x0E06): UTC delivery timestamp as a FILETIME.
StoreSupportMaskPR_STORE_SUPPORT_MASK (0x340D): capabilities bitmask of the message store.
BodyPR_BODY (0x1000): plain-text message body.
BodyHtmlPR_HTML (0x1013): HTML-formatted message body.
DisplayNamePR_DISPLAY_NAME (0x3001): display name (used for recipients and attachments).
AttachMethodPR_ATTACH_METHOD (0x3705): attachment method (ATTACH_BY_VALUE, ATTACH_EMBEDDED_MSG, etc.).
AttachDataBinaryPR_ATTACH_DATA_BIN (0x3701): raw attachment binary data.
AttachFilenamePR_ATTACH_FILENAME (0x3704): short (8.3) attachment filename.
AttachLongFilenamePR_ATTACH_LONG_FILENAME (0x3707): full long filename for the attachment.
AttachMimeTagPR_ATTACH_MIME_TAG (0x370E): MIME content-type of the attachment.
AttachContentIdPR_ATTACH_CONTENT_ID (0x3712): Content-ID header for inline attachments.
ScheduleInfoDelegateNamesPR_SCHDINFO_DELEGATE_NAMES (0x6844): delegate display names for calendar scheduling.
ScheduleInfoMonthsBusyPR_SCHDINFO_MONTHS_BUSY (0x6851): months with busy-time data in calendar scheduling info.
ExampleTag100A
ExampleTag101D

See Also