Click or drag to resize
MimeKit

IMimeEntity Interface

An interface for a MIME entity.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public interface IMimeEntity : IDisposable

The IMimeEntity type exposes the following members.

Properties
 NameDescription
Public propertyContentBase Get or set the base content URI.
Public propertyContentDisposition Get or set the content disposition.
Public propertyContentId Get or set the Content-Id.
Public propertyContentLocation Get or set the content location.
Public propertyContentType Get the type of the content.
Public propertyHeaders Get the list of headers.
Public propertyIsAttachment Get a value indicating whether this entity is an attachment.
Top
Methods
 NameDescription
Public methodAccept Dispatches to the specific visit method for this MIME entity.
Public methodDispose
(Inherited from IDisposable)
Public methodPrepare Prepare the MIME entity for transport using the specified encoding constraints.
Public methodWriteTo(Stream, CancellationToken) Write the IMimeEntity to the specified output stream.
Public methodWriteTo(String, CancellationToken) Write the IMimeEntity to the specified file.
Public methodWriteTo(FormatOptions, Stream, CancellationToken) Write the IMimeEntity to the specified output stream.
Public methodWriteTo(FormatOptions, String, CancellationToken) Write the IMimeEntity to the specified file.
Public methodWriteTo(Stream, Boolean, CancellationToken) Write the IMimeEntity to the specified output stream.
Public methodWriteTo(String, Boolean, CancellationToken) Write the IMimeEntity to the specified file.
Public methodWriteTo(FormatOptions, Stream, Boolean, CancellationToken) Write the IMimeEntity to the specified output stream.
Public methodWriteTo(FormatOptions, String, Boolean, CancellationToken) Write the IMimeEntity to the specified file.
Public methodWriteToAsync(Stream, CancellationToken) Asynchronously write the IMimeEntity to the specified output stream.
Public methodWriteToAsync(String, CancellationToken) Asynchronously write the IMimeEntity to the specified file.
Public methodWriteToAsync(FormatOptions, Stream, CancellationToken) Asynchronously write the IMimeEntity to the specified output stream.
Public methodWriteToAsync(FormatOptions, String, CancellationToken) Asynchronously write the IMimeEntity to the specified file.
Public methodWriteToAsync(Stream, Boolean, CancellationToken) Asynchronously write the IMimeEntity to the specified output stream.
Public methodWriteToAsync(String, Boolean, CancellationToken) Asynchronously write the IMimeEntity to the specified file.
Public methodWriteToAsync(FormatOptions, Stream, Boolean, CancellationToken) Asynchronously write the IMimeEntity to the specified output stream.
Public methodWriteToAsync(FormatOptions, String, Boolean, CancellationToken) Asynchronously write the IMimeEntity to the specified file.
Top
Remarks

A MIME entity is really just a node in a tree structure of MIME parts in a MIME message.

There are 3 basic types of entities: MimePart, Multipart, and MessagePart (which is actually just a special variation of MimePart who's content is another MIME message/document). All other types are derivatives of one of those.

See Also