Office.MailboxEnums.ResponseType enum

指定对会议邀请的响应类型。

注解

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

示例

// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/30-recipients-and-attendees/get-all-attendees.yaml

function organizeByResponse(attendees) {
  const accepted = [];
  const declined = [];
  const noResponse = [];
  const tentative = [];
  attendees.forEach(attendee => {
    switch (attendee.appointmentResponse) {
      case Office.MailboxEnums.ResponseType.Accepted:
        accepted.push(attendee);
        break;
      case Office.MailboxEnums.ResponseType.Declined:
        declined.push(attendee);
        break;
      case Office.MailboxEnums.ResponseType.None:
        noResponse.push(attendee);
        break;
      case Office.MailboxEnums.ResponseType.Tentative:
        tentative.push(attendee);
        break;
      case Office.MailboxEnums.ResponseType.Organizer:
        console.log(`Organizer: ${attendee.displayName}, ${attendee.emailAddress}`);
        break;
    } 
  });

  // List attendees by their response.
  console.log("Accepted: ");
  printAttendees(accepted);
  console.log("Declined: ");
  printAttendees(declined);
  console.log("Tentative: ");
  printAttendees(tentative);
  console.log("No response: ");
  printAttendees(noResponse);
}

字段

None = "none"

参与者尚未响应。

Organizer = "organizer"

参与者是会议组织者。

Tentative = "tentative"

参与者暂时接受会议请求。

Accepted = "accepted"

参与者已接受会议请求。

Declined = "declined"

参与者已拒绝会议请求。