Office

Improve LINQ Query Performance

I was writing a small utility for Outlook 2007 and was using LINQ to query Outlook Tasks.  This query was nested within another query.  While debugging, I realized that looping though the query results in my For Each loop was taking too long. If you have read anything about LINQ, I am sure you already(…)

Get Tasks in Outlook 2007 with VB.NET

You can retrieve the list of tasks in your Outlook 2007 using the following code Dim ns As Outlook.NameSpaceDim tasks As Outlook.Itemsns = Application.GetNamespace(“MAPI”)tasks = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderTasks).Items Dim task As ObjectFor Each task In tasks    ‘ iterate through the tasks hereNext