public static void Run()
{
// ExStart:SetColorCategories
// The path to the File directory.
string dataDir = RunExamples.GetDataDir_Outlook();
MapiMessage msg = MapiMessage.FromFile(dataDir + "message1.msg");
// Add Two category
FollowUpManager.AddCategory(msg, "Purple Category");
FollowUpManager.AddCategory(msg, "Red Category");
// Retrieve the list of available categories
IList categories = FollowUpManager.GetCategories(msg);
// Remove the specified category and then Clear all categories
FollowUpManager.RemoveCategory(msg, "Red Category");
FollowUpManager.ClearCategories(msg);
// ExEnd:SetColorCategories
}
}