Office.AttachmentsChangedEventArgs interface    
提供有关引发 Office.EventType.AttachmentsChanged 事件的邮件项目附件的信息。
注解
示例
// 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.
    }
}
属性
| attachment | 获取表示在邮件项中添加或删除的附件的 对象。 对象包含附件的  | 
| attachment | 指定是添加附件还是从邮件项中删除附件。 有关详细信息,请参阅 MailboxEnums.AttachmentStatus。 | 
| type | 获取引发的事件的类型。 有关详细信息,请参阅 Office.EventType。 | 
属性详细信息
		attachmentDetails
	 
	获取表示在邮件项中添加或删除的附件的 对象。 对象包含附件的 id、 name、 size和 attachmentType 属性。
attachmentDetails: object;属性值
object
注解
		attachmentStatus
	 
	指定是添加附件还是从邮件项中删除附件。 有关详细信息,请参阅 MailboxEnums.AttachmentStatus。
attachmentStatus: MailboxEnums.AttachmentStatus | string;属性值
Office.MailboxEnums.AttachmentStatus | string
注解
type
获取引发的事件的类型。 有关详细信息,请参阅 Office.EventType。
type: "olkAttachmentsChanged";属性值
"olkAttachmentsChanged"