Office.AttachmentContent interface
Represents the content of an attachment on a message or appointment item.
Remarks
[Api set: Mailbox 1.8]
Minimum permission level: read item
Applicable Outlook mode: Compose or Read
Properties
| content | The content of an attachment as a string. |
| format | The string format to use for an attachment's content. For file attachments, the formatting is a Base64-encoded string. For item attachments that represent messages and were attached by drag-and-drop or "Attach Item", the formatting is a string representing an .eml formatted file. For item attachments that represent calendar items and were attached by drag-and-drop or "Attach Item", the formatting is a string representing an .icalendar file. Important: If a message or calendar item was attached by drag-and-drop in Outlook on the web or new Outlook on Windows, then For cloud attachments, the formatting is a URL string. |
Property Details
content
The content of an attachment as a string.
content: string;
Property Value
string
format
The string format to use for an attachment's content.
For file attachments, the formatting is a Base64-encoded string.
For item attachments that represent messages and were attached by drag-and-drop or "Attach Item", the formatting is a string representing an .eml formatted file.
For item attachments that represent calendar items and were attached by drag-and-drop or "Attach Item", the formatting is a string representing an .icalendar file.
Important: If a message or calendar item was attached by drag-and-drop in Outlook on the web or new Outlook on Windows, then getAttachmentContentAsync throws an error.
For cloud attachments, the formatting is a URL string.
format: MailboxEnums.AttachmentContentFormat | string;