Export (0) Print
Expand All
Expand Minimize

_MailItem.MessageClass property

Returns or sets a String (string in C#) representing the message class for the Outlook item. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

[DispIdAttribute()]
string MessageClass { get; set; }

Property value

Type: System.String

This property corresponds to the MAPI property PidTagMessageClass. The MessageClass property links the item to the form on which it is based. When an item is selected, Outlook uses the message class to locate the form and expose its properties, such as Reply commands.

Show:
© 2014 Microsoft