EnvelopeMessagePreview Property |
Gets the entire or partial mail message.
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public MailMessage MessagePreview { get; }
Public ReadOnly Property MessagePreview As MailMessage
Get
Property Value
Type:
MailMessageA reference to
MailMessage object containing the entire message or its initial part (preview),
or a null reference (
Nothing in Visual Basic) if this information is not available
or was not requested.
Remarks
Depending on parameter values of
DownloadEnvelopes(String, Boolean, EnvelopeParts, Int32, String, String) method, this property may return
the entire message, its header section, its header section + part of the body section, or a null reference.
See
DownloadEnvelopes(String, Boolean, EnvelopeParts, Int32, String, String) topic on how to obtain the mail message within the envelope.
Note |
---|
To obtain just mail messages or message headers (without flags, etc), it's convenient to use methods such as DownloadEntireMessage(Int64, Boolean)
and DownloadMessageHeaders(String, Boolean), which call DownloadEnvelopes(String, Boolean, EnvelopeParts, Int32, String, String) inside, filter
the results, and return MailMessage and MailMessageCollection
objects. |
See Also