Share via


Office.MailboxEnums.AppointmentSensitivityType enum

予定の 秘密度レベル を指定します。

注釈

[ API セット: メールボックス 1.14 ]

適用できる Outlook モード: 新規作成または読み取り

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-set-sensitivity-level.yaml

Office.context.mailbox.item.sensitivity.setAsync(
  Office.MailboxEnums.AppointmentSensitivityType.Private,
  function callback(asyncResult) {
    if (asyncResult.status === Office.AsyncResultStatus.Failed) {
      console.log("Failed to set appointment sensitivity: " + JSON.stringify(asyncResult.error));
    } else {
      console.log("Successfully set appointment sensitivity.");
    }
  }
);

フィールド

Normal = "normal"

特別な扱いは不要です。

Personal = "personal"

アイテムを個人用として扱います。

重要: 個人用の秘密度レベルは、Outlook on Windows でのみサポートされます。

Private = "private"

アイテムをプライベートとして扱います。

Confidential = "confidential"

アイテムを機密として扱います。

重要: 機密機密レベルは、Outlook on Windows でのみサポートされます。