title: Is it possible to rename Outlook Category programmatically?
body: <p>We are developing Outlook 2007 add-in. For testing outlook category renaming I've added the following code block</p>
  
  <pre><code> var session = Application.Session;
   var categories = session.Categories;
   var category1 = session.Categories[1];
  
   //catefory1.Name is "Group1" before executing line below
   category1.Name = "TEST!!!";
  
   Marshal.ReleaseComObject(category1);
   Marshal.ReleaseComObject(categories);
   Marshal.ReleaseComObject(session);
  </code></pre>
  
  <p>to the end of add-in <code>private void ThisAddIn_Startup(object sender, EventArgs e)</code> method.
  Category is renamed but if Outlook is closed, the above lines are commented, and outlook is started again - the category name is not "TEST!!!" as I expected. It is "Group1" as is was before renaming. Is it possible to rename outlook category "forever" by code? Microsoft.Office.Interop.Outlook.Category has no Save() or Update() or Persist() methods.</p>
  
  <p>P.S. We are developing Outlook 2007 add-in using Visual Studio 2008, .net 3.5, C# 3.
  The problem is reproduced with Outlook 2007 SP1 and SP2. Other outlook versions were not tested.</p>