Appointment.Save-and-Appointment.Update始终将IsMeeting设置为true

本文关键字:IsMeeting 设置 true Save-and-Appointment Update Appointment | 更新日期: 2023-09-27 17:58:30

我想创建约会,而不是会议:

Appointment app = new Appointment(ews);
app.Start = DateTime.Now;
app.End = DateTime.Now.AddMinutes(60);
app.Subject = "My Subject";
app.Save();
string unid = app.Id.UniqueId;
// here the unid is given to the client, that may make another call leading to:
ItemId iid = new ItemId(unid);
app = Appointment.Bind(ews, iid, calendarFullEntryProperties);
return app.IsMeeting; // Will return true, although I never added any participants.

为什么?我在文件中遗漏了什么吗?

Appointment.Save-and-Appointment.Update始终将IsMeeting设置为true

EWS对会议和约会使用相同的对象类型。Save()Update()预约时的默认行为是发送会议邀请,即使您尚未邀请任何人。这基本上将IsMeeting设置为true。要将此保存为预约,请将保存的代码行更改为:

app.Save(SendInvitationsMode.SendToNone);

这将阻止发送邀请,并将IsMeeting设置为false