Browse by Tags

Tagged Content List
  • Blog Post: Debugging LINQ-to-DASL Queries

    When your LINQ-to-DASL queries do not return the results you expect, how do you determine where the problem is?  The issue could be that the query simply doesn't do what you expect.  For example, you could be querying the wrong DASL properties and therefore Outlook returns no (or unexpected...
  • Blog Post: Filter Outlook Items by Date with LINQ to DASL

    I received an email over the weekend asking why the following LINQ to DASL query threw an exception: Outlook. Folder folder = (Outlook. Folder )Application.Session.GetDefaultFolder(Outlook. OlDefaultFolders .olFolderCalendar); var appointments = from item in folder.Items.AsQueryable<...
  • Blog Post: LINQ to DASL Walkthrough

    Now that the Office Interop API Extensions have been released , I thought I would post a complete walkthrough of a simple LINQ to DASL application. Let's start with my fictitious Outlook calendar: This calendar shows that I have four appointments today. The appointments have been categorized as...
  • Blog Post: Parameterized Properties and the Office Interop API Extensions

    One of the disadvantages of C# compared with VB is its lack of support for parameterized properties. Instead, parameterized properties in C# are exposed as normal method calls prefixed with "get_" and "set_". This is particularly apparent when working with the Office object model as it exposes many such...
  • Blog Post: Banish Missing.Value with the Office Interop API Extensions

    I like VSTO. I like C#. What I don't like is having to write VSTO code in C# like: object fileName = "Test.docx" ; object missing = System.Reflection. Missing .Value; doc.SaveAs( ref fileName, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing...
Page 1 of 1 (5 items)