Monday, February 20, 2012

Version 1.2 or the EWS Managed API just released

The new version of the EWS Managed API has just been released which means you can start using the new Exchange 2010 SP2 features that have been added to the Managed API. A Quck few examples are
First make sure you set the Version to SP2 eg

  1. ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);  
Using Password Expiration
  1. DateTime PasswordExpirDate = (DateTime)service.GetPasswordExpirationDate("");  
Accessing the Directory Photo
  1. NameResolutionCollection ncCol = service.ResolveName("",ResolveNameSearchLocation.DirectoryOnly,true);  
  2. foreach (NameResolution nc in ncCol) {  
  3.     Byte[] dirPhoto = nc.Contact.DirectoryPhoto;  
  4. }  

See a full list of the new features at