EmailAttachment EmailAttachment EmailAttachment EmailAttachment EmailAttachment Class

Definition

Represents an email attachment.

public : sealed class EmailAttachment
struct winrt::Windows::ApplicationModel::Email::EmailAttachment
public sealed class EmailAttachment
Public NotInheritable Class EmailAttachment
var emailAttachment = new emailAttachment();
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
emailSystem email

Remarks

Attachments that you add to an email by using the EmailAttachment class will appear only in the Mail app. If users have any other mail program configured as their default mail program, the compose window will appear without the attachment. This is a known issue.

Constructors

EmailAttachment() EmailAttachment() EmailAttachment() EmailAttachment() EmailAttachment()

Initializes a new instance of the EmailAttachment class.

EmailAttachment(String, IRandomAccessStreamReference) EmailAttachment(String, IRandomAccessStreamReference) EmailAttachment(String, IRandomAccessStreamReference) EmailAttachment(String, IRandomAccessStreamReference) EmailAttachment(String, IRandomAccessStreamReference)

Initializes a new instance of the EmailAttachment class with the specified random access stream.

EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String)

Initializes a new instance of the EmailAttachment class.

Properties

ContentId ContentId ContentId ContentId ContentId

Gets or sets a value that identifies the content of the attachment on a remote system.

ContentLocation ContentLocation ContentLocation ContentLocation ContentLocation

Gets or sets the location of an email attachment as a Uniform Resource Identifier (URI).

Data Data Data Data Data

Gets or sets the email attachment's data.

DownloadState DownloadState DownloadState DownloadState DownloadState

Gets or sets the download state of the email attachment.

EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes

Gets or sets the estimated download size of the attachment.

FileName FileName FileName FileName FileName

Gets or sets the displayed file name for the email attachment.

Id Id Id Id Id

Gets the locally unique ID for the email attachment.

IsFromBaseMessage IsFromBaseMessage IsFromBaseMessage IsFromBaseMessage IsFromBaseMessage

Gets a Boolean value indicating if the attachment came from the base message.

IsInline IsInline IsInline IsInline IsInline

Gets or sets a Boolean property indicating if the attachment is included inline, in the body of the message.

MimeType MimeType MimeType MimeType MimeType

Gets or sets the MIME type of the attachment.

See also