代码之家  ›  专栏  ›  技术社区  ›  Mustafa Temiz

无法通过Exchange 2007 SP1上的EWS托管API检索Appointment.StartTimeZone

  •  5
  • Mustafa Temiz  · 技术社区  · 14 年前

    我可以取回 Appointment.TimeZone 对于以下项目:

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

    但不是 Appointment.StartTimeZone 返回空值。

    预约.时区 是字符串,似乎可以与 DisplayName 属于 TimeZoneInfo 对象,但不幸的是,这似乎是最终用户的语言(在我们的环境中,我遇到了Exchange为不同约会返回的不同语言)。因此,正确使用 TimeZone 约会字符串。

    主要问题是,会产生什么结果 StartTimeZone 约会无效?

    1 回复  |  直到 10 年前
        1
  •  5
  •   Carlos G.    14 年前

    不幸的是,Exchange2007 SP1不支持EWS的StartTimeZone属性。如果要使用该属性,必须使用Exchange 2010。

    对不起,我不能再帮你了