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
| Name | Description |
|---|---|
MessageClass | PR_MESSAGE_CLASS (0x001A): message type identifier string (e.g. IPM.Note). |
TransportMessageHeaders | PR_TRANSPORT_MESSAGE_HEADERS (0x007D): raw RFC 2822 Internet message headers. |
Subject | PR_SUBJECT (0x0037): message subject line. |
DisplayTo | PR_DISPLAY_TO (0x0E04): comma-separated display names of To recipients. |
DisplayCc | PR_DISPLAY_CC (0x0E03): comma-separated display names of Cc recipients. |
DisplayBcc | PR_DISPLAY_BCC (0x0E02): comma-separated display names of Bcc recipients. |
InternetMessageId | PR_INTERNET_MESSAGE_ID (0x1035): RFC 2822 Message-ID header value. |
MessageFlags | PR_MESSAGE_FLAGS (0x0E07): bitmask of message status flags (read, unsent, submitted, etc.). |
InternetCodepage | PR_INTERNET_CODEPAGE (0x3FDE): ANSI code page for 8-bit string encoding. |
SenderName | PR_SENDER_NAME (0x0C1A): display name of the message sender. |
SenderAddressType | PR_SENDER_ADDRTYPE (0x0C1E): address type of the sender (e.g. SMTP). |
SenderEmailAddress | PR_SENDER_EMAIL_ADDRESS (0x0C1F): SMTP address of the sender. |
MessageDeliveryTime | PR_MESSAGE_DELIVERY_TIME (0x0E06): UTC delivery timestamp as a FILETIME. |
StoreSupportMask | PR_STORE_SUPPORT_MASK (0x340D): capabilities bitmask of the message store. |
Body | PR_BODY (0x1000): plain-text message body. |
BodyHtml | PR_HTML (0x1013): HTML-formatted message body. |
DisplayName | PR_DISPLAY_NAME (0x3001): display name (used for recipients and attachments). |
AttachMethod | PR_ATTACH_METHOD (0x3705): attachment method (ATTACH_BY_VALUE, ATTACH_EMBEDDED_MSG, etc.). |
AttachDataBinary | PR_ATTACH_DATA_BIN (0x3701): raw attachment binary data. |
AttachFilename | PR_ATTACH_FILENAME (0x3704): short (8.3) attachment filename. |
AttachLongFilename | PR_ATTACH_LONG_FILENAME (0x3707): full long filename for the attachment. |
AttachMimeTag | PR_ATTACH_MIME_TAG (0x370E): MIME content-type of the attachment. |
AttachContentId | PR_ATTACH_CONTENT_ID (0x3712): Content-ID header for inline attachments. |
ScheduleInfoDelegateNames | PR_SCHDINFO_DELEGATE_NAMES (0x6844): delegate display names for calendar scheduling. |
ScheduleInfoMonthsBusy | PR_SCHDINFO_MONTHS_BUSY (0x6851): months with busy-time data in calendar scheduling info. |
ExampleTag100A | |
ExampleTag101D |