Office.RecurrenceTimeZone interface

表示重复周期的时区。

注解

[ API set: Mailbox 1.7 ]

最低权限级别读取项

适用的 Outlook 模式:撰写或阅读

示例

// This example gets the Recurrence object of an appointment item.
Office.context.mailbox.item.recurrence.getAsync(callback);

function callback(asyncResult) {
    const context = asyncResult.context;
    const recurrence = asyncResult.value;
    if (!recurrence) {
    //if (recurrence == null) {
        console.log("One-time appointment or meeting");
    } else {
        console.log(JSON.stringify(recurrence));
    }
}

// The following example shows the results of the getAsync call that retrieves the recurrence for a series.
// NOTE: In this example, seriesTimeObject is a placeholder for the JSON representing the
// recurrence.seriesTime property. You should use the SeriesTime object's methods to get the
// recurrence date and time properties.
Recurrence = {
    "recurrenceType": "weekly",
    "recurrenceProperties": {"interval": 2, "days": ["mon","thu","fri"], "firstDayOfWeek": "sun"},
    "seriesTime": {seriesTimeObject},
    "recurrenceTimeZone": {"name": "Pacific Standard Time", "offset": -480}
}

属性

name

表示重复时区的名称。

offset

表示会议系列开始日期的本地时区与 UTC 之间的分钟数差的整数值。

属性详细信息

name

表示重复时区的名称。

name: MailboxEnums.RecurrenceTimeZone | string;

属性值

offset

表示会议系列开始日期的本地时区与 UTC 之间的分钟数差的整数值。

offset?: number;

属性值

number