Office.MailboxEnums.AttachmentStatus enum

Especifica se um anexo foi adicionado ou removido de um item.

Comentários

[ Conjunto de API: Caixa de correio 1.8 ]

Modo outlook aplicável: compor ou ler

Exemplos

// 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);

Campos

Added = "added"

Um anexo foi adicionado ao item.

Removed = "removed"

Um anexo foi removido do item.