Office.AttachmentsChangedEventArgs interface
Provides information about the attachment on a mail item that raised the Office.EventType.AttachmentsChanged event.
Remarks
Examples
// Handles the OnMessageAttachmentsChanged event.
function onMessageAttachmentsChangedHandler(event) {
console.log(`Event: ${event.type}`);
if (event.attachmentStatus === Office.MailboxEnums.AttachmentStatus.Added) {
const attachment = event.attachmentDetails;
// Perform operations on the attachment that was added.
}
}
Properties
| attachment |
Gets the object that represents the attachment that was added or removed from a mail item. The object contains the |
| attachment |
Specifies whether the attachment was added or removed from a mail item. For details, see MailboxEnums.AttachmentStatus. |
| type | Gets the type of event that was raised. For details, see Office.EventType. |
Property Details
attachmentDetails
Gets the object that represents the attachment that was added or removed from a mail item. The object contains the id, name, size, and attachmentType properties of the attachment.
attachmentDetails: object;
Property Value
object
Remarks
attachmentStatus
Specifies whether the attachment was added or removed from a mail item. For details, see MailboxEnums.AttachmentStatus.
attachmentStatus: MailboxEnums.AttachmentStatus | string;
Property Value
Office.MailboxEnums.AttachmentStatus | string
Remarks
type
Gets the type of event that was raised. For details, see Office.EventType.
type: "olkAttachmentsChanged";
Property Value
"olkAttachmentsChanged"