Office.MailboxEnums.AppointmentSensitivityType enum

注意

此 API 以预览状态提供给开发者,可能根据我们收到的反馈更改。 请勿在生产环境中使用此 API。

指定约会的 敏感度级别

注解

[ API 集:邮箱预览 ]

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

示例

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/99-preview-apis/calendar-properties-apis.yaml

Office.context.mailbox.item.sensitivity.setAsync(
  Office.MailboxEnums.AppointmentSensitivityType.Confidential,
  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 中受支持。