Share via


MailItem.Message property

When overridden in a derived class, the Message property gets the underlying EmailMessage class object enclosed by the MailItem class object.

Namespace:  Microsoft.Exchange.Data.Transport
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property Message As EmailMessage
    Get
'Usage
Dim instance As MailItem
Dim value As EmailMessage

value = instance.Message
public abstract EmailMessage Message { get; }

Property value

Type: Microsoft.Exchange.Data.Transport.Email.EmailMessage

See also

Reference

MailItem class

MailItem members

Microsoft.Exchange.Data.Transport namespace