Class MimeEntity
Base class for a MIME entity (RFC 2045 §2.4). A node in the body tree of a message.
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public abstract class MimeEntity
Constructors
View SourceMimeEntity(MimeHeaderCollection, ContentType, ContentDisposition?, string?, ContentTransferEncoding)
Initializes a new instance of the MimeEntity class.
Declaration
protected MimeEntity(MimeHeaderCollection headers, ContentType contentType, ContentDisposition? contentDisposition, string? contentId, ContentTransferEncoding transferEncoding)
Parameters
| Type | Name | Description |
|---|---|---|
| MimeHeaderCollection | headers | |
| ContentType | contentType | |
| ContentDisposition | contentDisposition | |
| string | contentId | |
| ContentTransferEncoding | transferEncoding |
Properties
View SourceContentDisposition
Gets the Content-Disposition of this entity, or null if not specified.
Declaration
public ContentDisposition? ContentDisposition { get; }
Property Value
| Type | Description |
|---|---|
| ContentDisposition |
ContentId
Gets the Content-ID of this entity, or null if not specified.
Declaration
public string? ContentId { get; }
Property Value
| Type | Description |
|---|---|
| string |
ContentType
Gets the Content-Type of this entity.
Declaration
public ContentType ContentType { get; }
Property Value
| Type | Description |
|---|---|
| ContentType |
Headers
Gets the headers of this entity.
Declaration
public MimeHeaderCollection Headers { get; }
Property Value
| Type | Description |
|---|---|
| MimeHeaderCollection |
TransferEncoding
Gets the Content-Transfer-Encoding of this entity.
Declaration
public ContentTransferEncoding TransferEncoding { get; }
Property Value
| Type | Description |
|---|---|
| ContentTransferEncoding |