Attachment Class

Represents an e-mail attachment.
Inheritance Hierarchy

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.6
Syntax
public class Attachment : AttachmentBase, IPreferredTextEncodingProvider, 
	IAttachment

The Attachment type exposes the following members.

Constructors
  NameDescription
Public methodAttachment(String)
Initializes a new instance of the Attachment class.
Public methodAttachment(Stream, ContentType)
Initializes a new instance of the Attachment class.
Public methodAttachment(Stream, String)
Initializes a new instance of the Attachment class.
Public methodAttachment(String, ContentType)
Initializes a new instance of the Attachment class.
Public methodAttachment(String, String)
Initializes a new instance of the Attachment class.
Public methodAttachment(Stream, String, String)
Initializes a new instance of the Attachment class.
Public methodAttachment(Uri, String, String)
Initializes a new instance of the Attachment class.
Properties
  NameDescription
Public propertyContentDisposition
Gets Content-Disposition header
Public propertyContentId
Gets or sets the content id.
(Inherited from AttachmentBase.)
Public propertyContentStream
Gets or sets the content stream.
(Inherited from AttachmentBase.)
Public propertyContentType
Gets or sets the type of the content.
(Inherited from AttachmentBase.)
Public propertyHeaders
Gets headers collection of attachment.
(Inherited from AttachmentBase.)
Public propertyIsEmbeddedMessage
Public propertyIsUri
Gets a value indicating whether attachment is URI-attachment.
Public propertyName
Gets or sets an attachment name
Public propertyNameEncoding
Gets or sets an encoding of attachment name
Public propertyPreferredTextEncoding
Gets or sets a preferred text encoding
Public propertyTransferEncoding
Gets or sets the transfer encoding.
(Inherited from AttachmentBase.)
Methods
  NameDescription
Public methodStatic memberCreateAttachmentFromString(String, ContentType)
Creates the attachment from string.
Public methodStatic memberCreateAttachmentFromString(String, String)
Creates the attachment from string.
Public methodStatic memberCreateAttachmentFromString(String, String, Encoding, String)
Creates the attachment from string.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from AttachmentBase.)
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
(Inherited from AttachmentBase.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodGenerateContentId
Generates the content id value.
(Overrides AttachmentBaseGenerateContentId.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSave(Stream)
Saves the specified stream.
(Inherited from AttachmentBase.)
Public methodSave(String)
Saves the specified file name.
(Inherited from AttachmentBase.)
Public methodToString (Inherited from Object.)
See Also