MailKit Documentation
MailKit Documentation
API Reference
MimeKit.Tnef
TnefPart Class
TnefPart Methods
Accept Method
ConvertToMessage Method
ExtractAttachments Method
Tnef
Part
Convert
To
Message Method
Convert the TNEF content into a
MimeMessage
.
Namespace:
MimeKit.Tnef
Assembly:
MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
Copy
public
MimeMessage
ConvertToMessage
()
Return Value
MimeMessage
A message representing the TNEF data in MIME format.
Implements
ITnefPart
ConvertToMessage
Exceptions
Exception
Condition
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
Reference
TnefPart Class
MimeKit.Tnef Namespace
Copyright © 2013-2023 Jeffrey Stedfast
Send comments on this topic to
Jeffrey Stedfast