Attachment Class
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9147)
Represents an e-mail attachment.
Syntax
public class Attachment : AttachmentBase
Inherited Members
Constructors
Name | Description |
---|---|
Attachment() | Initializes a new empty instance of a Attachment. |
Attachment(Mail |
Initializes a new instance of a Attachment that represents an attached e-mail message. |
Attachment(Byte[], String) | Initializes a new instance of a Attachment with the content of the supplied byte array and with suggested name. |
Attachment(Byte[], String, String) | Initializes a new instance of a Attachment with the content of the supplied byte array and with a media type and suggested name. |
Attachment(Stream, String) | Initializes a new instance of a Attachment with the content of the supplied stream and with suggested name. |
Attachment(Stream, String, String) | Initializes a new instance of a Attachment with the content of the supplied stream and with a media type and suggested name. |
Attachment(String) | Initializes a new instance of a Attachment with the content of the specified file. |
Attachment(String, String) | Initializes a new instance of a Attachment with the content of the specified file and with a suggested name. |
Attachment(String, String, String) | Initializes a new instance of a Attachment 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 Attachment |
Content |
Gets or sets the content description of this attachment.
Inherited from Attachment |
Content |
Gets the content disposition of this attachment.
Inherited from Attachment |
Content |
Gets or sets the content ID of this attachment.
Inherited from Attachment |
Content |
Gets or sets the absolute or relative URI of this message part.
Inherited from Attachment |
Content |
Gets the inner message of this attachment if it is an attached message of "message/rfc822" content type. |
Content |
Gets the content string of this attachment.
Inherited from Attachment |
Content |
Gets the content type of this attachment.
Inherited from Attachment |
Display |
Gets the suggested display name of this attachment. |
File |
Gets or sets the file name of this attachment. |
Media |
Gets the media type of this attachment.
Inherited from Attachment |
Options | Gets or sets verious options for MIME parser and writer.
Inherited from Attachment |
Transfer |
Gets or sets the Transfer |
Methods
Name | Description |
---|---|
Get |
Gets the length of the attachment.
Inherited from Attachment |
Get |
Returns the read-only stream representing a content of this attachment.
Inherited from Attachment |
Get |
Returns the stream representing a content of this attachment.
Inherited from Attachment |
Save(Stream) | Writes the content of the attachment into the supplied stream.
Inherited from Attachment |
Save(String) | Writes the content of the attachment or view into a supplied file.
Inherited from Attachment |
Set |
Sets the content of this attachment to data read from the specified stream and sets file name. |
Set |
Sets the content of this attachment to data read from the specified stream and sets media type and file name. |
Set |
Sets the content of this attachment to the specified text.
Inherited from Attachment |
Set |
Sets the content of this attachment to the specified text and media type.
Inherited from Attachment |
Set |
Sets the content of this attachment to the specified text, media type and character set.
Inherited from Attachment |
Set |
Sets the content of this attachment to the specified text, media type and character set.
Inherited from Attachment |
Set |
Sets the content of this attachment to data read from the specified file. |
Set |
Sets the content of this attachment to data read from the specified file and sets file name. |
Set |
Sets the content of this attachment to data read from the specified file and sets media type and file name. |
To |
Converts this instance to a Mime |