Click or drag to resize
MimeKit

ITnefPartConvertToMessage Method

Convert the TNEF content into a MimeMessage.

Namespace: MimeKit.Tnef
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
MimeMessage ConvertToMessage()

Return Value

MimeMessage
A message representing the TNEF data in MIME format.
Exceptions
ExceptionCondition
InvalidOperationException The Content property is null.
ObjectDisposedException The ITnefPart has been disposed.
Remarks
TNEF data often contains properties that map to MimeMessage headers. TNEF data also often contains file attachments which will be mapped to MIME parts.
See Also