Exchange samples: learn through code

Download Exchange code samples and applications. New samples are added frequently in JavaScript, C++, C#, and VB.NET.You can also download code samples for other products like Windows 8, Windows Phone, Windows Azure, Office, SharePoint, Silverlight, or explore the Official Visual Studio 2010 C#, VB.NET, and 101 LINQ samples.
Each sample is licensed to you by the party distributing it. Microsoft does not guarantee the samples or grant rights for any sample distributed by a party other than Microsoft. Use of this site is subject to the Terms of Use.
Sort by: rss
173 results
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
The samples in the Exchange 2013: 101 code samples package show you how to use the Exchange Web Services (EWS) Managed API to perform specific tasks with mailbox data on an on-premises Exchange server, Exchange Online, or Exchange Online as part of Office 365.
4.5 Star
(19)
Updated 12/19/2013
Released 7/18/2012
61,116 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample shows you how to use the Exchange Web Services (EWS) Managed API to discover your EWS end point and authenticate with the service.
5 Star
(1)
Updated 8/21/2013
Released 8/21/2013
4,257 Downloads
C#
OneCode Team - Microsoft
How to export email messages from Office 365 Exchange Online
5 Star
(1)
Updated 9/22/2016
Released 4/24/2014
6,472 Downloads
David Barrett (Microsoft)
A PowerShell script that uses EWS (requires the EWS Managed API) to merge folders within a mailbox or from one mailbox to another (in the same organisation).  Can be used for multiple folders, and automated against multiple mailboxes.
4.7 Star
(14)
Updated 10/19/2018
Released 2/13/2015
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
Use the EWS Managed API to get attachments on items in Exchange server.
4.5 Star
(2)
Updated 6/6/2013
Released 6/6/2013
2,559 Downloads
C#
Anthony Cangialosi [MS] - Microsoft
This Sample creates a simple send email dialog that is used to demonstrate how to use the Exchange Web services Managed API. This sample has one important section of code on the event handler for send message button.  This code creates a new instance of the ExchangeService and us
3 Star
(5)
Updated 1/27/2012
Released 2/25/2011
8,736 Downloads
C#
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample shows you how to use the Exchange Web Services (EWS) Managed API to retrieve a collection of distribution lists that contain email addresses for all the room resources in your organization.
3 Star
(2)
Updated 6/26/2013
Released 7/16/2012
2,021 Downloads
C#
OneCode Team
How to Get Availability Details in Office 365
5 Star
(1)
Updated 9/22/2016
Released 4/10/2014
3,712 Downloads
Microsoft Office Developer Documentation Team

Microsoft Office Developer Documentation Team MSFT

Microsoft Office Developer Documentation Team samples are developed and tested by the Office Developer Documentation Team to ensure that you have a great experience.

View samples
- Microsoft
This sample pack includes all of the code samples developed for apps for Office. The sample pack provides a convenient way to download all of the samples at once.
4.6 Star
(11)
Updated 10/20/2015
Released 3/20/2013
45,623 Downloads
David Barrett (Microsoft)
PowerShell script that uses EWS to connect to an Exchange mailbox and search for and delete duplicate items.
5 Star
(4)
Updated 2/7/2017
Released 6/19/2015

Couldn't find the sample you were looking for?

1 - 10 of 173 Items