Click or drag to resize
EmailAttachment Class
Extends .net e-mail attachment.
Inheritance Hierarchy

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 8.2.23
Syntax
C#
public class EmailAttachment : Attachment

The EmailAttachment type exposes the following members.

Constructors
  NameDescription
Public methodEmailAttachment(String)
Initializes a new instance of the EmailAttachment class with the specified content string.
Public methodEmailAttachment(String, ContentType)
Initializes a new instance of the EmailAttachment class with the specified content string and System.Net.Mime.ContentType.
Public methodEmailAttachment(String, String)
Initializes a new instance of the EmailAttachment class with the specified content string and MIME type information.
Public methodEmailAttachment(Stream, ContentType)
Initializes a new instance of the EmailAttachment class with the specified stream and content type.
Public methodEmailAttachment(Stream, String)
Initializes a new instance of the EmailAttachment class with the specified stream and name.
Public methodEmailAttachment(Stream, String, String)
Initializes a new instance of the EmailAttachment class with the specified stream, name and MIME type information.
Public methodEmailAttachment(Stream, String, Guid, DateTime, Int32)
Initializes a new instance of the EmailAttachment class with the specified stream, name, GUID, time stamp and site ID.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyAttachmentGUID
GUID of the attachment's source object (e.g. MetaFileGUID).
Public propertyLastModified
Last modification time of the attachement's source object.
Public propertySiteID
Site ID of the attachment's source object.
Top
See Also