Share via


_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)

Syntax

'Declaration
Property MessageClass As String
    Get
    Set
'Usage
Dim instance As _MailItem
Dim value As String

value = instance.MessageClass

instance.MessageClass = value
string MessageClass { get; set; }

Property Value

Type: System.String

Remarks

This property corresponds to the MAPI property PR_MESSAGE_CLASS. 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.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace