Click or drag to resize

Attachment Class

Represents a mail message attachment.
Inheritance Hierarchy
SystemObject
  GemBox.EmailAttachment

Namespace:  GemBox.Email
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 11.3.30.1034
Syntax
public sealed class Attachment

The Attachment type exposes the following members.

Constructors
  NameDescription
Public methodAttachment(String)
Initializes a new instance of the Attachment class from specified file.
Public methodAttachment(Stream, String)
Initializes a new instance of the Attachment class with specified content and file name.
Public methodAttachment(MediaType, Byte)
Initializes a new instance of the Attachment class with specified content type and content.
Public methodAttachment(MediaType, Stream)
Initializes a new instance of the Attachment class with specified content type and content.
Public methodAttachment(MediaType, Stream, String)
Initializes a new instance of the Attachment class with specified content type, content and file name.
Top
Properties
  NameDescription
Public propertyData
Gets the attachment data stream.
Public propertyDispositionType
Gets the attachment content disposition type.
Public propertyFileName
Gets the file name.
Public propertyMimeEntity
Gets the underlying MIME entity.
Public propertySize
Gets the data size.
Top
See Also