Compartir a través de


Office.MailboxEnums.AttachmentStatus enum

Especifica si se ha agregado o quitado datos adjuntos de un elemento.

Comentarios

[ Conjunto de API: Buzón 1.8 ]

Modo de Outlook aplicable: Compose o lectura

Ejemplos

// 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"

Se agregó un archivo adjunto al elemento.

Removed = "removed"

Se quitaron datos adjuntos del elemento.