Office.RecurrenceProperties interface
繰り返しのプロパティを表します。
注釈
最小アクセス許可レベル: 項目の読み取り
適用可能な Outlook モード: Composeまたは読み取り
使用元
例
// 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}
}
プロパティ
| day |
月の日付を表します。 |
| day |
曜日または曜日の種類 (例: 土曜日と平日) を表します。 |
| days | この定期的な日数を表します。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。 |
| first |
選択した週の最初の曜日を表します。それ以外の場合は、現在のユーザーの設定の値が既定値になります。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。 |
| interval | 同じ定期的な系列のインスタンス間の期間を表します。 |
| month | 月を表します。 |
| week |
選択した月の週番号を表します (例: 月の最初の週の 'first')。 |
プロパティの詳細
dayOfMonth
月の日付を表します。
dayOfMonth?: number;
プロパティ値
number
dayOfWeek
曜日または曜日の種類 (例: 土曜日と平日) を表します。
dayOfWeek?: MailboxEnums.Days | string;
プロパティ値
Office.MailboxEnums.Days | string
days
この定期的な日数を表します。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。
days?: MailboxEnums.Days[] | string[];
プロパティ値
Office.MailboxEnums.Days[] | string[]
firstDayOfWeek
選択した週の最初の曜日を表します。それ以外の場合は、現在のユーザーの設定の値が既定値になります。 有効な値は、'Mon'、'Tue'、'Wed'、'Thu'、'Fri'、'Sat'、および 'Sun' です。
firstDayOfWeek?: MailboxEnums.Days | string;
プロパティ値
Office.MailboxEnums.Days | string
interval
同じ定期的な系列のインスタンス間の期間を表します。
interval: number;
プロパティ値
number
month
weekNumber
選択した月の週番号を表します (例: 月の最初の週の 'first')。
weekNumber?: MailboxEnums.WeekNumber | string;
プロパティ値
Office.MailboxEnums.WeekNumber | string