koo9
koo9

Reputation: 409

using Exchange Web Service API

Working on a project using exchange web service API, but I want to confirm this before proceeding. with the API, the code need to explicitly specify the exchange version like this:

var exchangeService = new ExchangeService(ExchangeVersion.Exchange2010_SP2)
        {
            Credentials = new NetworkCredential(_userName, _password),
        };

so my question is when the exchange server is upgraded to say exchange 2013, would the code still work?

Thanks

Kevin

Upvotes: 0

Views: 211

Answers (2)

Manojkumar
Manojkumar

Reputation: 43

Exchange2010_SP2 is valid for Future service packs like Service pack3

Upvotes: 0

cdugga
cdugga

Reputation: 3859

Yes this will still work.

EWS schemas are backward- and forward-compatible. The schema you specify above determines the features which will be available to your application. If your application targets an earlier version then what your connected to then it just means you wont be able take advantage of the new features.

See following for more information..http://msdn.microsoft.com/en-us/library/office/jj190904(v=exchg.150).aspx (Search for section on EWS Client Features)

Upvotes: 1

Related Questions