List<exchangecontact> contacts = new List<exchangecontact>(); ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new NetworkCredential("myname", "mypassword", "myserver"); service.Url = new Uri("https://myserver/ews/exchange.asmx"); ItemView(int.MaxValue)); foreach (Contact contact in service.FindItems(WellKnownFolderName.Contacts, new ItemView(int.MaxValue))) { ExchangeContact thisContact = new ExchangeContact(); thisContact.FullName = contact.DisplayName; thisContact.Company = contact.CompanyName; thisContact.JobTitle = contact.JobTitle; thisContact.Notes = contact.Notes; contacts.Add(thisContact); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)