MimeEntity Class

A MIME entity: a leaf part (MimePart), a multipart (MimeMultipart) or an embedded message (MimeMessagePart).

public abstract class MimeEntity

Properties

NameDescription
ContentDispositionGets or sets the content disposition, or null when the entity has none.
ContentIdGets or sets the identifier of the content, without its angle brackets, which an HTML body references with cid: URLs.
ContentTypeGets or sets the content type. The default is text/plain ([RFC 2045] 5.2).
HeadersGets the headers of the entity: Content-Type, Content-Disposition, Content-Transfer-Encoding...

ContentDisposition

MimeEntity.cs

Gets or sets the content disposition, or null when the entity has none.

public MimeContentDisposition? ContentDisposition { get; set; }

ContentId

MimeEntity.cs

Gets or sets the identifier of the content, without its angle brackets, which an HTML body references with cid: URLs.

public string? ContentId { get; set; }

Property value

string?

ContentType

MimeEntity.cs

Gets or sets the content type. The default is text/plain ([RFC 2045] 5.2).

public MimeContentType ContentType { get; set; }

Property value

MimeContentType

Gets the headers of the entity: Content-Type, Content-Disposition, Content-Transfer-Encoding...

public MimeHeaderCollection Headers { get; }

Property value

MimeHeaderCollection