EmailAttachment Class
An attachment of an EmailMessage: a file, or an embedded message.
public sealed class EmailAttachmentConstructors
| Name | Description |
|---|---|
| EmailAttachment() |
EmailAttachment()
EmailAttachment.cspublic EmailAttachment()No documentation is available.
Properties
| Name | Description |
|---|---|
| Content | Gets or sets the content of a file attachment. |
| ContentId | Gets or sets the identifier of the content, without angle brackets, which an HTML body references with cid: URLs. |
| ContentType | Gets or sets the MIME type of the content, such as image/png. |
| EmbeddedMessage | Gets or sets the message of an attachment that is a message, or null for a file. |
| FileName | Gets or sets the file name. |
| IsInline | Gets or sets whether the attachment is shown in the body, such as an image of an HTML body, rather than listed as a file. |
Content
EmailAttachment.csGets or sets the content of a file attachment.
public ReadOnlyMemory<byte> Content { get; set; }Property value
ContentId
EmailAttachment.csContentType
EmailAttachment.csEmbeddedMessage
EmailAttachment.csGets or sets the message of an attachment that is a message, or null for a file.
public EmailMessage? EmbeddedMessage { get; set; }Property value
FileName
EmailAttachment.csIsInline
EmailAttachment.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the file name. |