If you want the get all categories from the master category list in Outlook 2010, use the Session object from the application:

            Categories categories = Globals.ThisAddIn.Application.Session.Categories;
            foreach (Category category in categories)
            {
                string name = category.Name;
            }

This will list all categories from the dialog “All Categories…”:

 

image

One Comment

  1. I had added a Custom category to above list using VSTO plugin, but it doesn’t display respective colors, it just displays name of the custom category in mail item, In All Categories dialog, it shows category, not in the master category list.

    Aniket Bhansali

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.