Office.MailboxEnums.AppointmentSensitivityType enum

指定约会的 敏感度级别

注解

API 集:邮箱 1.14

适用的 Outlook 模式:Compose 或 Read

使用方

示例

// 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"

将物品视为个人物品。

重要提示: 个人敏感度级别仅在 Windows 上的 Outlook 中受支持。

Private = "private"

将该项目视为私人项目。

Confidential = "confidential"

将该项目视为机密项目。

重要提示: 仅 Windows 上的 Outlook 支持机密敏感度级别。