Office.InfobarClickedEventArgs interface    
提供有关引发 Office.EventType.InfobarClicked 事件的通知消息的基本详细信息。
注解
示例
// Adds an event handler for the InfobarClicked event.
Office.onReady(() => {
    document.addEventListener('DOMContentLoaded', () => {
        // Get a reference to the mailbox and use it to add an event handler.
        const mailbox = Office.context.mailbox;
        mailbox.addHandlerAsync(Office.EventType.InfobarClicked, infobarClickedHandler, (result) => {
            if (result.status === Office.AsyncResultStatus.Failed) {
                console.error(`Failed to add event handler: ${asyncResult.error.message}`);
                return;
            }
            console.log("Event handler added successfully.");
        });
    });
});
// Handles the InfobarClicked event.
function infobarClickedHandler(event) {
    console.log(`Event: ${event.type}`);
    const infobarDetails = event.infobarDetails;
    console.log(`Notification type: ${infobarDetails.infobarType}`);
    console.log(`Action type: ${infobarDetails.actionType}`);
}
属性
| infobar | 获取有关通知消息的其他详细信息。 | 
| type | 获取事件的类型。 有关详细信息,请参阅 Office.EventType。 | 
属性详细信息
		infobarDetails
	 
	获取有关通知消息的其他详细信息。
infobarDetails: InfobarDetails;