AttachmentBase Class

Base class for mail attachment.
Inheritance Hierarchy

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.2
Syntax
public abstract class AttachmentBase : IDisposable

The AttachmentBase type exposes the following members.

Constructors
  NameDescription
Protected methodAttachmentBase
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(Stream)
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(String)
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(Stream, ContentType)
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(Stream, String)
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(String, ContentType)
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(String, String)
Initializes a new instance of the AttachmentBase class.
Protected methodAttachmentBase(Stream, String, String)
Initializes a new instance of the AttachmentBase class.
Properties
  NameDescription
Public propertyContentId
Gets or sets the content id.
Public propertyContentStream
Gets or sets the content stream.
Public propertyContentType
Gets or sets the type of the content.
Public propertyHeaders
Gets headers collection of attachment.
Public propertyTransferEncoding
Gets or sets the transfer encoding.
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Protected methodGenerateContentId
Generates the content id value.
Protected methodStatic memberGetEncodingFromContent
Defines Encoding from content.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSave(Stream)
Saves the specified stream.
Public methodSave(String)
Saves the specified file name.
Protected methodSetContentFromString
Sets the content from string.
Public methodToString (Inherited from Object.)
See Also