1

我试图删除公共日历中的约会。

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);

但它不起作用。问题出在哪里?

4

1 回答 1

1

试试这个,让我知道它是否有帮助..

deleteAppointmennt.Delete(DeleteMode.SoftDelete, SendCancellationsMode.SendToNone);
于 2011-12-16T14:00:16.973 回答