Office.RecurrenceChangedEventArgs interface

提供引发 Office.EventType.RecurrenceChanged 事件的更新的定期对象。

注解

[ API set: Mailbox 1.7 ]

示例

// Adds an event handler for the RecurrenceChanged 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.RecurrenceChanged, recurrenceChangedHandler, (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 RecurrenceChanged event.
function recurrenceChangedHandler(event) {
    console.log(`Event: ${event.type}`);
    const recurrence = event.recurrence;

    // Perform operations based on the updated recurrence.
}

属性

recurrence

获取更新的重复周期对象。

type

获取事件的类型。 有关详细信息,请参阅 Office.EventType

属性详细信息

recurrence

获取更新的重复周期对象。

recurrence: Recurrence;

属性值

注解

[ API set: Mailbox 1.7 ]

type

获取事件的类型。 有关详细信息,请参阅 Office.EventType

type: "olkRecurrenceChanged";

属性值

"olkRecurrenceChanged"

注解

[ API set: Mailbox 1.7 ]