Email Factory for .NET

Attachment Methods

The methods of the Attachment class are listed below. For a complete list of Attachment class members, see the Attachment Members topic.

Public Static Methods

GetMIMETypeGets system MIME type.

Public Instance Methods

AddHeader (inherited from MimeMessage)Overloaded. Adds MIME header to this
MimeMessage
.
AddPart (inherited from MimeMessage)Adds part to multipart
MimeMessage
.
AddReplaceHeader (inherited from MimeMessage)Overloaded. Adds MIME header to this
MimeMessage
, replacing existing header if found.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBody (inherited from MimeMessage)Gets decoded message body using character encoding specified in charset attribute of Content-Type message header. If no character encoding is defined then US-ASCII character encoding is used.
GetBodyData (inherited from MimeMessage)Gets decoded message body as bytes.
GetBoundary (inherited from MimeMessage)Gets boundary used in this
MimeMessage
.
GetBoundaryWithoutQuotes (inherited from MimeMessage)Gets boundary used in this
MimeMessage
.
GetContentEncodingGets Content-transfer-encoding header value for this
Attachment
.
GetContentTransferEncoding (inherited from MimeMessage)Gets the value of the Content-Transfer-Encoding header for this
MimeMessage
. The Content-Transfer-Encoding header indicates the encoding method used for the message body. Typical values are BASE64, UUENCODE, 7BIT, 8BIT and QUOTED-PRINTABLE.
GetContentTypeGets content-type for this
Attachment
.
GetFileDataGets decoded content of this
Attachment
.
GetFilenameGets filename field contained in Content-Disposition header attribute for this
Attachment
.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetHeader (inherited from MimeMessage)Returns named header specified by
name
.
GetHeaders (inherited from MimeMessage)Overloaded. Gets all mime headers for this
MimeMessage
.
GetHeaderValue (inherited from MimeMessage)Gets value for header specified by
name
.
GetMessage (inherited from MimeMessage)Gets contents of this
MimeMessage
. Contents include all MIME message headers, body and any parts.
GetPart (inherited from MimeMessage)Gets specified part from this
MimeMessage
.
GetParts (inherited from MimeMessage)Gets parts of this
MimeMessage
.
GetRawBodyData (inherited from MimeMessage) Gets message body as bytes. The body will be returned as is.
GetType (inherited from Object)Gets the Type of the current instance.
RemoveHeader (inherited from MimeMessage)Removes specified header from this
MimeMessage
.
RemovePart (inherited from MimeMessage)Removes specified
index
from parts array.
RemoveParts (inherited from MimeMessage) Removes all parts from array.
SetBody (inherited from MimeMessage)Overloaded. Sets body of this
MimeMessage
. Default system character encoding is used to convert the body to bytes.
SetContentEncodingSets Content-Transfer-Encoding header for this
Attachment
.
SetContentTypeSets Content-Type header for this
Attachment
.
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 | Jscape.Email Namespace