Using LINQ to access Outlook data - Part 2
Please see this previous post on how to get started using LINQ with Outlook. I will assume you have added the appropriate references to the Outlook object model.
In this post I am going to show you how to find emails from people that you don't have in your address book. We will achieve this by cross referencing the information in your contacts with the emails in your inbox.
Now, inside the Main method, we need to add the following code:
Outlook._Application outlookObject = new Outlook.Application();
This code references the Outlook application. We now need to specify which Outlook folders we...
Using LINQ to access Outlook data
Grab yourself a copy of Visual Studio code name "Orcas" and follow along as we create a program to access your data in Outlook.
Test Data
You will need to have some contacts in Outlook to test this program. Add at least 3 contacts, one with a home phone but no email, one with an email but no phone numbers, and one with no email and no phone numbers.
Getting Started
Start "Orcas" and click File->New->Project… Choose to create a Console Application in C# with the .NET Framework 3.5.
We need to add a reference to Outlook 2007. Right...