c#Exchange Webservices删除公用文件夹中的约会

时间:2011-12-16 13:52:07

标签: c# exchangewebservices appointment

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

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

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

1 个答案:

答案 0 :(得分:1)

尝试一下,让我知道它是否有帮助..

deleteAppointmennt.Delete(DeleteMode.SoftDelete, SendCancellationsMode.SendToNone);