First make sure you set the Version to SP2 eg
- ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
- DateTime PasswordExpirDate = (DateTime)service.GetPasswordExpirationDate("user@domain.com");
Accessing the Directory Photo
- NameResolutionCollection ncCol = service.ResolveName("user@domain.com",ResolveNameSearchLocation.DirectoryOnly,true);
- foreach (NameResolution nc in ncCol) {
- Byte[] dirPhoto = nc.Contact.DirectoryPhoto;
- }
See a full list of the new features at http://msdn.microsoft.com/en-us/library/ee693006%28v=exchg.80%29.aspx
No comments:
Post a Comment