MailBee.NET Objects 4.0

Attachment Members

Attachment overview

Public Instance Constructors

Attachment Constructor Creates a new instance of Attachment object from the specified MimePart object.

Public Instance Properties

AsMimePart Gets the attachment as MimePart object.
ContentID Gets the Content-ID value of the attachment.
ContentLocation Gets the content location of the attachment.
ContentType Gets the content type of the attachment.
Description Gets the description of the attachment.
Filename Gets the filename of the attachment.
FilenameOriginal Gets the original filename of the attachment.
Headers Gets the collection of the attachment headers.
IsFile Indicates if the attachment is a file.
IsInline Indicates if the attachment is inline.
IsMessageInside Indicates if the attachment contains a mail message.
IsTnef Indicates if the attachment is MS-TNEF (winmail.dat) container which can have other attachments inside.
IsZip Indicates if the attachment is a zip archive.
LastResult Gets a numeric code of the last error.
Name Gets the friendly name of the attachment.
RawHeader Gets a string containing the header section of the attachment in the original form.
SavedAs Gets the full path to the attachment which was saved to disk.
Size Gets the length of the binary content of the attachment.
ThrowExceptions Gets or sets whether the object will throw exceptions on errors.

Public Instance Methods

Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetAttachmentsFromTnef Extracts all the files from TNEF container and returns them as AttachmentCollection.
GetDataOverloaded. Gets the actual content of the attachment as a byte array.
GetEncapsulatedMessage Gets the encapsulated e-mail message as a MailMessage object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
Save Saves the content of the attachment into the specified file.
SaveToFolder Saves the content of the attachment into a file in the specified folder.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

Attachment Class | MailBee.Mime Namespace | AttachmentCollection