Office.MailboxEnums.AttachmentStatus enum
Gibt an, ob eine Anlage zu einem Element hinzugefügt oder daraus entfernt wurde.
Hinweise
Anwendbarer Outlook-Modus: Compose oder Lesen
Beispiele
// Get the attachment that was just added to a message or appointment.
function myHandlerFunction(eventarg) {
if (eventarg.attachmentStatus === Office.MailboxEnums.AttachmentStatus.Added) {
const attachment = eventarg.attachmentDetails;
console.log("Event Fired and Attachment Added!");
getAttachmentContentAsync(attachment.id, options, callback);
}
}
Office.context.mailbox.item.addHandlerAsync(Office.EventType.AttachmentsChanged, myHandlerFunction, myCallback);
Felder
| Added = "added" | Dem Element wurde eine Anlage hinzugefügt. |
| Removed = "removed" | Eine Anlage wurde aus dem Element entfernt. |