无法通过 Exchange 2007 SP1 上的 EWS 托管 API 检索 Appointment.StartTimeZone
我可以通过以下方式检索项目的 Appointment.TimeZone
:
PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...);
ServiceResponseCollection<ServiceResponse> response = Exchange.LoadPropertiesForItems(items, propertiesAll);
但不能检索返回 null 的 Appointment.StartTimeZone
。
Appointment.TimeZone
是字符串,似乎与 TimeZoneInfo
对象的 DisplayName
相当,但不幸的是,这似乎是最终用户的语言(在我们的环境中,我遇到了 Exchange 针对不同约会返回的不同语言)。因此,正确使用 TimeZone 字符串进行约会似乎很复杂/不可能。
主要问题是,什么情况会导致约会的 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 be 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
遗憾的是,Exchange 2007 SP1 不支持 EWS 的 StartTimeZone 属性。如果您想使用该属性,则必须使用 Exchange 2010。
抱歉,我无法提供更多帮助
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