TTMSFNCCloudMicrosoftOutlookMailAttachment Class
Represents an attachment of a received message, including its name, size and Base64-encoded content.
API unit family: TMSFNCCloudMicrosoftOutlookMail
Inherits from: TCollectionItem
Syntax
TTMSFNCCloudMicrosoftOutlookMailAttachment = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| ContentBytes | Base64-encoded raw content of the attachment. |
| ContentID | Content identifier used to reference the attachment from inline image markup in the message body. |
| ID | Unique identifier of the attachment. |
| Read-only reference to the message that owns this attachment. | |
| Name | File name of the attachment. |
| Size | Size of the attachment in bytes. |
Methods
| Name | Description |
|---|---|
| FromJSON | Reads the attachment identifier, name, content and size from a parsed JSON attachment object. |
| SaveToFile | Decodes the attachment content and writes it to a file on disk. |
| SaveToStream | Decodes the attachment content and writes it to a stream. |