IMime Entity Interface
An interface for a MIME entity.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public interface IMimeEntity : IDisposable- Implements
- IDisposable
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.
Properties
| ContentBase | Get or set the base content URI. |
| ContentDisposition | Get or set the content disposition. |
| ContentId | Get or set the Content-Id. |
| ContentLocation | Get or set the content location. |
| ContentType | Get the type of the content. |
| Headers | Get the list of headers. |
| IsAttachment | Get a value indicating whether this entity is an attachment. |
Methods
| Accept | Dispatches to the specific visit method for this MIME entity. |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable) |
| Prepare | Prepare the MIME entity for transport using the specified encoding constraints. |
| WriteTo(Stream, CancellationToken) | Write the IMimeEntity to the specified output stream. |
| WriteTo(String, CancellationToken) | Write the IMimeEntity to the specified file. |
| WriteTo(FormatOptions, Stream, CancellationToken) | Write the IMimeEntity to the specified output stream. |
| WriteTo(FormatOptions, String, CancellationToken) | Write the IMimeEntity to the specified file. |
| WriteTo(Stream, Boolean, CancellationToken) | Write the IMimeEntity to the specified output stream. |
| WriteTo(String, Boolean, CancellationToken) | Write the IMimeEntity to the specified file. |
| WriteTo(FormatOptions, Stream, Boolean, CancellationToken) | Write the IMimeEntity to the specified output stream. |
| WriteTo(FormatOptions, String, Boolean, CancellationToken) | Write the IMimeEntity to the specified file. |
| WriteToAsync(Stream, CancellationToken) | Asynchronously write the IMimeEntity to the specified output stream. |
| WriteToAsync(String, CancellationToken) | Asynchronously write the IMimeEntity to the specified file. |
| WriteToAsync(FormatOptions, Stream, CancellationToken) | Asynchronously write the IMimeEntity to the specified output stream. |
| WriteToAsync(FormatOptions, String, CancellationToken) | Asynchronously write the IMimeEntity to the specified file. |
| WriteToAsync(Stream, Boolean, CancellationToken) | Asynchronously write the IMimeEntity to the specified output stream. |
| WriteToAsync(String, Boolean, CancellationToken) | Asynchronously write the IMimeEntity to the specified file. |
| WriteToAsync(FormatOptions, Stream, Boolean, CancellationToken) | Asynchronously write the IMimeEntity to the specified output stream. |
| WriteToAsync(FormatOptions, String, Boolean, CancellationToken) | Asynchronously write the IMimeEntity to the specified file. |