我想要的是约会,而不是会议:
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.为什么会这样呢?我是不是忽略了文档里的任何东西?
发布于 2014-04-16 14:19:45
EWS在会议和约会中使用相同的对象类型。当您Save()或Update()约会时,默认行为是发送会议邀请,即使您没有邀请任何人。这实际上将IsMeeting设置为true。若要将此保存为约会,请将保存代码行更改为:
app.Save(SendInvitationsMode.SendToNone);这将防止发出邀请,并将IsMeeting设置为false。
https://stackoverflow.com/questions/23105331
复制相似问题