LinkedResource Class
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9448)
Represents an embedded resource such as an image or a CSS file referenced from the message views.
Syntax
public class LinkedResource : AttachmentBase
Inherited Members
Constructors
| Name | Description |
|---|---|
| LinkedResource() | Initializes a new empty instance of a LinkedResource. |
| LinkedResource(Stream, String) | Initializes a new instance of a LinkedResource with the content of the supplied stream and with a media type. |
| LinkedResource(Stream, String, String) | Initializes a new instance of a LinkedResource with the content of the supplied stream and with a media type and suggested name. |
| LinkedResource(String, String) | Initializes a new instance of a LinkedResource with the content of the specified file and with media type. |
| LinkedResource(String, String, String) | Initializes a new instance of a LinkedResource with the content of the specified file and with a media type and suggested name. |
Properties
| Name | Description |
|---|---|
| Charset | Gets the charset (Encoding) of the content of this attachment. Inherited from AttachmentBase. |
| ContentDescription | Gets or sets the content description of this attachment. Inherited from AttachmentBase. |
| ContentDisposition | Gets the content disposition of this attachment. Inherited from AttachmentBase. |
| ContentId | Gets or sets the content ID of this attachment. Inherited from AttachmentBase. |
| ContentLocation | Gets or sets the absolute or relative URI of this message part. Inherited from AttachmentBase. |
| ContentString | Gets the content string of this attachment. Inherited from AttachmentBase. |
| ContentType | Gets the content type of this attachment. Inherited from AttachmentBase. |
| FileName | Gets the suggested file name of this attachment. |
| MediaType | Gets the media type of this attachment. Inherited from AttachmentBase. |
| Options | Gets or sets verious options for MIME parser and writer. Inherited from AttachmentBase. |
| TransferEncoding | Gets or sets the TransferEncoding of the content of this attachment. Inherited from AttachmentBase. |
Methods
| Name | Description |
|---|---|
| GetContentLength() | Gets the length of the attachment. Inherited from AttachmentBase. |
| GetContentStream() | Returns the read-only stream representing a content of this attachment. Inherited from AttachmentBase. |
| GetContentStream(Boolean) | Returns the stream representing a content of this attachment. Inherited from AttachmentBase. |
| Save(Stream) | Writes the content of the attachment into the supplied stream. Inherited from AttachmentBase. |
| Save(String) | Writes the content of the attachment or view into a supplied file. Inherited from AttachmentBase. |
| SetContent(Stream, String) | Sets the content of this resource to data read from the specified stream and sets media type. |
| SetContent(String) | Sets the content of this attachment to the specified text. Inherited from AttachmentBase. |
| SetContent(String, String) | Sets the content of this attachment to the specified text and media type. Inherited from AttachmentBase. |
| SetContent(String, String, Encoding) | Sets the content of this attachment to the specified text, media type and character set. Inherited from AttachmentBase. |
| SetContent(String, String, Encoding, TransferEncoding) | Sets the content of this attachment to the specified text, media type and character set. Inherited from AttachmentBase. |
| SetContentFromFile(String, String) | Sets the content of this resource to data read from the specified file and sets media type. |
| SetContentFromFile(String, String, String) | Sets the content of this resource to data read from the specified file and sets media type and file name. |
| ToMimeEntity() | Converts this instance to a MimeEntity. Inherited from AttachmentBase. |