An Avanade Blogging Community

Welcome to An Avanade Blogging Community Sign in | Join | Help
in Search

Aali - a developer's view

Exchange Web Services Managed API

Great, now there is an easy way to talk to Exchange over ws: managed API

Wrote this in 5 minutes and it worked without a single bug:

ExchangeService service = new ExchangeService();
service.Credentials = new NetworkCredential("userid", "password", "domain");
service.Url = new Uri("https://servername/EWS/Exchange.asmx");

ItemView view = new ItemView(100); // Return only ten items.
FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, view);

foreach (Item i in findResults)
{
    listBox1.Items.Add(i.Subject);
}

Published Monday, October 26, 2009 4:11 PM by aalialikoski
Filed Under:

Comments

No Comments
Anonymous comments are disabled