AttachmentBase Class
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9313)
The base class that represents an e-mail attachment.
Syntax
public abstract class AttachmentBase
Inherited Members
Constructors
| Name | Description |
|---|---|
| AttachmentBase() | Initializes an instance of AttachmentBase class. |
| AttachmentBase(MimeEntity) | Initializes an instance of AttachmentBase class from the specified entity. |
Properties
| Name | Description |
|---|---|
| Charset | Gets the charset (Encoding) of the content of this attachment. |
| ContentDescription | Gets or sets the content description of this attachment. |
| ContentDisposition | Gets the content disposition of this attachment. |
| ContentId | Gets or sets the content ID of this attachment. |
| ContentLocation | Gets or sets the absolute or relative URI of this message part. |
| ContentString | Gets the content string of this attachment. |
| ContentType | Gets the content type of this attachment. |
| MediaType | Gets the media type of this attachment. |
| Options | Gets or sets verious options for MIME parser and writer. |
| TransferEncoding | Gets or sets the TransferEncoding of the content of this attachment. |
Methods
| Name | Description |
|---|---|
| GetContentLength() | Gets the length of the attachment. |
| GetContentStream() | Returns the read-only stream representing a content of this attachment. |
| GetContentStream(Boolean) | Returns the stream representing a content of this attachment. |
| Save(Stream) | Writes the content of the attachment into the supplied stream. |
| Save(String) | Writes the content of the attachment or view into a supplied file. |
| SetContent(String) | Sets the content of this attachment to the specified text. |
| SetContent(String, String) | Sets the content of this attachment to the specified text and media type. |
| SetContent(String, String, Encoding) | Sets the content of this attachment to the specified text, media type and character set. |
| SetContent(String, String, Encoding, TransferEncoding) | Sets the content of this attachment to the specified text, media type and character set. |
| ToMimeEntity() | Converts this instance to a MimeEntity. |