开发者

Can't retrieve Appointment.StartTimeZone through EWS Managed API on Exchange 2007 SP1

开发者 https://www.devze.com 2023-01-23 23:52 出处:网络
I can retrieve the Appointment.TimeZone for items with: PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...);

I can retrieve the Appointment.TimeZone for items with:

PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...);
ServiceResponseCollection<ServiceResponse> response = Exchange.LoadPropertiesForItems(items, propertiesAll);

But not Appointment.StartTimeZone which returns null.

Appointment.TimeZone is string and seems to be comparable to DisplayName of TimeZoneInfo objects, but unfortunately this seems to b开发者_运维问答e in the language of the end users (in our environment I encountered different languages returned by Exchange for different appointments). So it seems to be complicated/impossible to make proper use of TimeZone string for an appointment.

The main question is, what could result StartTimeZone of an appointment to be null?


Unfortunately, Exchange 2007 SP1 does not support the StartTimeZone property of EWS. If you want to use that property, you must use Exchange 2010.

Sorry I couldn't be of any more help

0

精彩评论

暂无评论...
验证码 换一张
取 消