Office.RecurrenceProperties interface

繰り返しのプロパティを表します。

注釈

[ API セット: メールボックス 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) {
        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}
}

プロパティ

dayOfMonth

月の日を表します。

dayOfWeek

曜日または曜日の種類を表します (たとえば、週末の日と平日)。

days

この繰り返しの日数のセットを表します。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。

firstDayOfWeek

選択した曜日を表します。それ以外の場合、既定値は現在のユーザーの設定の値です。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。

interval

同じ定期的な系列のインスタンス間の期間を表します。

month

月を表します。

weekNumber

選択した月の週の数を表します。たとえば、月の最初の週の "first" です。

プロパティの詳細

dayOfMonth

月の日を表します。

dayOfMonth?: number;

プロパティ値

number

dayOfWeek

曜日または曜日の種類を表します (たとえば、週末の日と平日)。

dayOfWeek?: MailboxEnums.Days | string;

プロパティ値

days

この繰り返しの日数のセットを表します。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。

days?: MailboxEnums.Days[] | string[];

プロパティ値

firstDayOfWeek

選択した曜日を表します。それ以外の場合、既定値は現在のユーザーの設定の値です。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。

firstDayOfWeek?: MailboxEnums.Days | string;

プロパティ値

interval

同じ定期的な系列のインスタンス間の期間を表します。

interval: number;

プロパティ値

number

month

月を表します。

month?: MailboxEnums.Month | string;

プロパティ値

weekNumber

選択した月の週の数を表します。たとえば、月の最初の週の "first" です。

weekNumber?: MailboxEnums.WeekNumber | string;

プロパティ値