随笔分类 -  Exchange

摘要:Getting calendar items using Exchange Web ServicesI am no expert at exchange, let alone Exchange Web Services (EWS), but I recently had to use it to get at calendar information for a project. Let me tell you that the documentation for EWS sucks and the API is not very intuitive. That said, I was abl 阅读全文
posted @ 2012-04-26 10:47 大刀客 阅读(417) 评论(0) 推荐(0)
摘要:问题:System.Exception: Unable to create a new meetingErrorCalendarInvalidTimeZone时区无效。解答:创建TimeZoneType的时候TimeZoneName如下设置TimeZoneType tzt = new TimeZoneType(); //tzt.TimeZoneName = TimeZone.CurrentTimeZone.StandardName;//如使用这行会出现上述问题 tzt.TimeZoneName = "(GMT+08:00)Beijing, Chongqing, Hong Kong, 阅读全文
posted @ 2012-04-23 16:00 大刀客 阅读(455) 评论(0) 推荐(0)
摘要:var ews = new ExchangeServiceBinding { Credentials = new NetworkCredential("user", "pass"), Url = "https://servername/ews/exchange.asmx", RequestServerVersionValue = new RequestServerVersion { Version = ExchangeVersionType.Exchange2007}};var startDate = new DateTime(201 阅读全文
posted @ 2012-04-20 13:40 大刀客 阅读(615) 评论(0) 推荐(0)