EmailAttachment
EmailAttachment
EmailAttachment
EmailAttachment
Class
Definition
Represents an email attachment.
public : sealed class EmailAttachment : IEmailAttachment, IEmailAttachment2public sealed class EmailAttachment : IEmailAttachment, IEmailAttachment2Public NotInheritable Class EmailAttachment Implements IEmailAttachment, IEmailAttachment2// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Constructors
EmailAttachment() EmailAttachment() EmailAttachment() EmailAttachment()
Initializes a new instance of the EmailAttachment class.
public : EmailAttachment()public EmailAttachment()Public Sub New()// You can use this method in JavaScript.
- See Also
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.
public : EmailAttachment(PlatForm::String fileName, IRandomAccessStreamReference data)public EmailAttachment(String fileName, IRandomAccessStreamReference data)Public Sub New(fileName As String, data As IRandomAccessStreamReference)// You can use this method in JavaScript.
- fileName
- PlatForm::String String String String
The file name to use for the attachment.
- data
- IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference
A random access stream containing the data for the attachment.
EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String) EmailAttachment(String, IRandomAccessStreamReference, String)
Initializes a new instance of the EmailAttachment class.
public : EmailAttachment(PlatForm::String fileName, IRandomAccessStreamReference data, PlatForm::String mimeType)public EmailAttachment(String fileName, IRandomAccessStreamReference data, String mimeType)Public Sub New(fileName As String, data As IRandomAccessStreamReference, mimeType As String)// You can use this method in JavaScript.
- fileName
- PlatForm::String String String String
The filename of the attachment.
- data
- IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference
The stream to use to download the attachment.
- mimeType
- PlatForm::String String String String
The MIME type of the attachment.
- See Also
Properties
ContentId ContentId ContentId ContentId
Gets or sets a value that identifies the content of the attachment on a remote system.
public : PlatForm::String ContentId { get; set; }public string ContentId { get; set; }Public ReadWrite Property ContentId As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
A value that identifies the content of the attachment.
ContentLocation ContentLocation ContentLocation ContentLocation
Gets or sets the location of an email attachment as a Uniform Resource Identifier (URI).
public : PlatForm::String ContentLocation { get; set; }public string ContentLocation { get; set; }Public ReadWrite Property ContentLocation As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The location of an email attachment as a Uniform Resource Identifier (URI).
Data Data Data Data
Gets or sets the email attachment's data.
public : IRandomAccessStreamReference Data { get; set; }public IRandomAccessStreamReference Data { get; set; }Public ReadWrite Property Data As IRandomAccessStreamReference// You can use this property in JavaScript.
- Value
- IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference
The email attachment data.
DownloadState DownloadState DownloadState DownloadState
Gets or sets the download state of the email attachment.
public : EmailAttachmentDownloadState DownloadState { get; set; }public EmailAttachmentDownloadState DownloadState { get; set; }Public ReadWrite Property DownloadState As EmailAttachmentDownloadState// You can use this property in JavaScript.
- Value
- EmailAttachmentDownloadState EmailAttachmentDownloadState EmailAttachmentDownloadState EmailAttachmentDownloadState
The download state of the email attachment.
EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes EstimatedDownloadSizeInBytes
Gets or sets the estimated download size of the attachment.
public : ulong EstimatedDownloadSizeInBytes { get; set; }public ulong EstimatedDownloadSizeInBytes { get; set; }Public ReadWrite Property EstimatedDownloadSizeInBytes As ulong// You can use this property in JavaScript.
- Value
- ulong ulong ulong ulong
The estimated download size of the attachment.
FileName FileName FileName FileName
Gets or sets the displayed file name for the email attachment.
public : PlatForm::String FileName { get; set; }public string FileName { get; set; }Public ReadWrite Property FileName As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The displayed file name for the email attachment.
Id Id Id Id
Gets the locally unique ID for the email attachment.
public : PlatForm::String Id { get; }public string Id { get; }Public ReadOnly Property Id As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The locally unique ID for the email attachment.
IsFromBaseMessage IsFromBaseMessage IsFromBaseMessage IsFromBaseMessage
Gets a Boolean value indicating if the attachment came from the base message.
public : PlatForm::Boolean IsFromBaseMessage { get; }public bool IsFromBaseMessage { get; }Public ReadOnly Property IsFromBaseMessage As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
A Boolean value indicating if the attachment came from the base message.
Remarks
If you remove a base attachment, you cannot use smart-send.
IsInline IsInline IsInline IsInline
Gets or sets a Boolean property indicating if the attachment is included inline, in the body of the message.
public : PlatForm::Boolean IsInline { get; set; }public bool IsInline { get; set; }Public ReadWrite Property IsInline As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
A Boolean property indicating if the attachment is included inline.
MimeType MimeType MimeType MimeType
Gets or sets the MIME type of the attachment.
public : PlatForm::String MimeType { get; set; }public string MimeType { get; set; }Public ReadWrite Property MimeType As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The MIME type of the attachment.