PstItemGetAsMailMessage Method |
Namespace: MailBee.OutlookAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public virtual MailMessage GetAsMailMessage()
Public Overridable Function GetAsMailMessage As MailMessage
Return Value
Type:
MailMessageA
MailMessage object with "X-Pst" headers set.
Remarks This method is useful if you want to work with this item as a
MailMessage object
(for instance, if you want to save it into an .EML file). This method produces an empty mail message and adds all the
PstFields as the message headers. The header name would be "X-Pst-" + PST field name while the header value would be the value of the corresponding PST field converted into a string.
Values of binary fields (e.g. ConversationIndex) are converted into base64 strings,
values of other types (strings, dates, numbers, booleans) are produced with
ToString.
See Also