Click or drag to resize
MimeKit

TnefPartConvertToMessage Method

Convert the TNEF content into a MimeMessage.

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

Return Value

MimeMessage
A message representing the TNEF data in MIME format.
Exceptions
ExceptionCondition
InvalidOperationException The Content property is null.
ObjectDisposedException The TnefPart 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