1
我只希望房間的電子郵件收到邀請,而不是其他必需的邀請人。但是,「Save()」方法似乎只有發送到全部或沒有設置類型。有沒有人有辦法解決嗎?如何使用C#以編程方式發送交換約會邀請到所需的與會者之一?
appointment.Subject = myAppointmentInfo.ClassName;
appointment.Body = "";
appointment.Start = myAppointmentInfo.StartDateTime;
appointment.End = myAppointmentInfo.EndDateTime;
appointment.Location = myAppointmentInfo.Location;
appointment.ReminderMinutesBeforeStart = 5;
appointment.RequiredAttendees.Add(employeeEmail1);
appointment.RequiredAttendees.Add(employeeEmail2);
appointment.RequiredAttendees.Add(roomEmail);
appointment.Save(SendInvitationsMode.SendToNone);