如何在Outlook 2007,VSTO,C#中添加新类别? [英] How to Add A New Category in Outlook 2007, VSTO, C# ?

查看:93
本文介绍了如何在Outlook 2007,VSTO,C#中添加新类别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用VSTO并开发用于MS Outlook 2007的插件。
我需要创建新类别如何使用C#在Outlook 2007中执行此操作?

想要MailItem.Categories = New_CategoryName。
问候,
日本Shah

Hello,
      I am using VSTO  and developing plug-in for MS Outlook 2007.
I need to create new Categories How can I do that in outlook 2007 using C# ?

and also want to MailItem.Categories = New_CategoryName.
Regards,
Japan Shah

推荐答案

Outlook 2007中的主类别列表是通过命名空间管理的.Categories集合,它有一个Add方法;请参阅 http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.outlook._categories.add.aspx


The master category list in Outlook 2007 is managed through the Namespace.Categories collection, which has an Add method; see http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.outlook._categories.add.aspx:



这篇关于如何在Outlook 2007,VSTO,C#中添加新类别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆