问题描述
我可以通过以下方式检索项目的Appointment.TimeZone
:
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);
但不是Appointment.StartTimeZone
,它返回空值.
Appointment.TimeZone
是字符串,似乎可以与TimeZoneInfo
对象的DisplayName
相提并论,但是不幸的是,这似乎是最终用户的语言(在我们的环境中,我遇到了Exchange针对不同的约会返回的不同语言) ).因此,正确使用TimeZone
字符串进行约会似乎很复杂/不可能.
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.
主要问题是,约会StartTimeZone
可能为空的结果是什么?
The main question is, what could result StartTimeZone
of an appointment to be null?
推荐答案
不幸的是,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.
对不起,我无能为力了
这篇关于无法通过Exchange 2007 SP1上的EWS托管API检索Appointment.StartTimeZone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!