自动发现Exchange版本(托管API)? [英] Autodiscover the Exchange version (managed API)?

查看:77
本文介绍了自动发现Exchange版本(托管API)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Exchange 2007中的某些用户和Exchange 2010中的其他用户的环境中工作。(所有自动发现请求似乎都在2010年之前提供)。是否有一种优雅的方式来使用自动发现来确定特定用户使用哪个Exchange服务器版本?我可以使用自动发现来获取服务器的EWS Url,但我在自动发现的信息中找不到任何指示它是哪个Exchange服务器版本的信息。 (托管API)

-jeff

I work in an environment that has some users in Exchange 2007 and others in Exchange 2010. (All of the autodiscover requests appear to be served by 2010). Is there a graceful way to use autodiscovery to determine which exchange server version to use for a particular user? I can use autodiscovery to get the EWS Url for the server, but I can't find anything in the autodiscovered information that indicates which exchange server version it is. (Managed API)

-jeff

推荐答案

您可以使用 AutodiscoverService 及其 GetUserSettings 方法,用于检索 EwsSupportedSchemas 设置。请注意,AutodiscoverService仅与Exchange 2010自动发现服务通信。如果这成为问题,您还可以尝试使用Exchange 2010的服务设置调用say Folder.Bind(service,WellKnownFolder.Inbox),如果失败则回退到使用针对Exchange 2007 SP1的服务。
You can use AutodiscoverService and its GetUserSettings method to retrieve the EwsSupportedSchemas setting. Note that AutodiscoverService will only talk to an Exchange 2010 Autodiscover service. If this becomes a problem, you can also try calling say Folder.Bind(service, WellKnownFolder.Inbox) with a service setup for Exchange 2010, and if it fails fall back to using a service targeted to Exchange 2007 SP1.


这篇关于自动发现Exchange版本(托管API)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆