我试图删除公开日历中的约会。
ExchangeService Exchange = new ExchangeService();
Uri tempuri = new Uri(@"\\192.168.55.138");
Exchange.Url = tempuri;
Exchange.AutodiscoverUrl("tp@mailserver.de");
string appointmentID = "AAIARgAAAA...";
Appointment deleteAppointmennt = Appointment.Bind(Exchange, new ItemId(appointmentID));
deleteAppointmennt.Delete(DeleteMode.HardDelete);
但它不起作用。问题在哪里?
答案 0 :(得分:1)
尝试一下,让我知道它是否有帮助..
deleteAppointmennt.Delete(DeleteMode.SoftDelete, SendCancellationsMode.SendToNone);