AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Contains metadata and attachment raw content.

Inheritance Hierarchy

System.Object
  Amazon.SimpleEmailV2.Model.Attachment

Namespace: Amazon.SimpleEmailV2.Model
Assembly: AWSSDK.SimpleEmailV2.dll
Version: 3.x.y.z

Syntax

C#
public class Attachment

The Attachment type exposes the following members

Constructors

NameDescription
Public Method Attachment()

Properties

NameTypeDescription
Public Property ContentDescription System.String

Gets and sets the property ContentDescription.

A brief description of the attachment content.

Public Property ContentDisposition Amazon.SimpleEmailV2.AttachmentContentDisposition

Gets and sets the property ContentDisposition.

A standard descriptor indicating how the attachment should be rendered in the email. Supported values: ATTACHMENT or INLINE.

Public Property ContentId System.String

Gets and sets the property ContentId.

Unique identifier for the attachment, used for referencing attachments with INLINE disposition in HTML content.

Public Property ContentTransferEncoding Amazon.SimpleEmailV2.AttachmentContentTransferEncoding

Gets and sets the property ContentTransferEncoding.

Specifies how the attachment is encoded. Supported values: BASE64, QUOTED_PRINTABLE, SEVEN_BIT.

Public Property ContentType System.String

Gets and sets the property ContentType.

The MIME type of the attachment.

Example: application/pdf, image/jpeg

Public Property FileName System.String

Gets and sets the property FileName.

The file name for the attachment as it will appear in the email. Amazon SES restricts certain file extensions. To ensure attachments are accepted, check the Unsupported attachment types in the Amazon SES Developer Guide.

Public Property RawContent System.IO.MemoryStream

Gets and sets the property RawContent.

The raw data of the attachment. It needs to be base64-encoded if you are accessing Amazon SES directly through the HTTPS interface. If you are accessing Amazon SES using an Amazon Web Services SDK, the SDK takes care of the base 64-encoding for you.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5