在EWS託管API是很容易地創建約會爲特定用戶:使用EWS託管API爲其他用戶創建約會?
ExchangeService service = new ExchangeService();
service.Credentials = new NetworkCredentials ("administrator", "password", "domain");
service.AutodiscoverUrl(emailAddress);
Appointment appointment = new Appointment(service);
appointment.Subject = "Testing";
appointment.Start = DateTime.Now;
appointment.End = appointment.Start.AddHours(1);
appointment.Save();
這將創建一個管理員任命。但是,假設我想爲其他用戶創建約會(不是將該用戶添加爲我的約會參與者)。這可能通過EWS託管API來實現嗎?
@Alfred。你能告訴我在哪裏安裝了Managed API DLL嗎?我無法在我的機器上的任何地方找到它...很多謝謝。 – brumScouse 2011-01-11 10:28:16
@brumScouse。而不是評論,你應該發佈一個新的問題。無論如何,託管API DLL不與Exchange Server一起安裝。您必須從Microsoft下載並安裝到您的計算機上。截至此日期,最新版本可以在http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1 – 2011-01-12 18:38:57
@brumScouse找到,按照Alfred的指示DLL可以在類似於以下位置找到:C:\ Program Files \ Microsoft \ Exchange \ Web Services \ 2.2 – 2014-08-16 01:03:19