使用自定义消息类 IPM.CustomClass 创建 Outlook 项目

发布于 2024-08-01 13:08:22 字数 354 浏览 5 评论 0原文

我正在使用 VSTO 3.0 for Outlook2003 插件。 是否可以创建具有自定义消息类 IPM.CustomClass 的项目。

以下文章提到了有关创建自定义项目 IPM 的表单配置文件。帮助。 是否可以创建自定义 Outlook 表单并将其注册到自定义消息类

顺便说一句,可以使用 webdav 在 Exchange Server 2003 中创建具有自定义消息类 IPM.CustomClass 的项目。

I am using VSTO 3.0 for outlook2003 addin. Is it possible to create an item with custom Message Class IPM.CustomClass.

The following article mentions about form configuration files to create custom item IPM.Help.
Is it possible to create a custom Outlook Form and register it against custom message class.

BTW it is possible to create an item with custom Message Class IPM.CustomClass in Exchange server 2003 using webdav.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

夢归不見 2024-08-08 13:08:22

是的,您可以使用 Items.Add 方法创建自定义类的新项目并指定消息类。

http://msdn.microsoft.com/en-us/library/bb220348。 aspx

但这是你的问题吗? 看起来您可能想以编程方式创建一个新类?

Yes you can create a new item of a custom class use Items.Add Method and specify the Message Class.

http://msdn.microsoft.com/en-us/library/bb220348.aspx

But is that your question? As it looks like that you may want to programmatically create a new class?

街角迷惘 2024-08-08 13:08:22

是的,您可以在 Exchange 中创建邮件类别。 您使用组织形式库。
我相信如果需要的话,您可以使用 webdav 来完成此操作,本质上您仍然在 Outlook 中设计表单并保存它。 然后使用webdav将表单模板推送到exchange的org库。
http://www.outlookcode.com/article.aspx?ID=35

是的,您可以创建自定义消息类别。 正如前面的海报所说,您只需在 Outlook 中创建一个表单(在设计模式下),然后使用“发布”命令将该表单发布到 Outlook 表单库(或组织表单库 - 交换)。

http://office.microsoft.com/en-au/outlook/HA012106101033。 aspx

就 VSTO 而言,您不使用它来直接注册类,当您使用表单设计器中的“发布”命令时,系统会为您完成此操作。 VSTO 仅用于编写使用自定义消息类创建检查器窗口的代码。

http://support.microsoft.com/kb/310244

请参阅下面的代码示例。

Outlook.Application olApp = new Outlook.Application();
//mapifolder for earlier versions (such as ol 2003)
Outlook.Folder contacts = olApp.Session.GetDefaultFolder(Outlook.olDefaultFolders.olFolderContacts);
//must start with IPM.   & must be derived from a base item type, in this case contactItem.
Outlook.ContactItem itm = (Outlook.ContactItem)contacts.Items.Add(@"IPM.Contact.CustomMessageClass");
itm.Display(false);

Yes you can create message classes in Exchange. You use the organsisational forms library.
I believe you can do this with webdav if you need to, essentially you still design the form in outlook and save it. Then use webdav to push the form template to the org library of exchange.
http://www.outlookcode.com/article.aspx?ID=35

Yes you can create a custom message class. as previous poster said, you just create a form in outlook (in design mode) and then use the Publish command to publish the form to the outlook forms library (or organisational forms library - exchange).

http://office.microsoft.com/en-au/outlook/HA012106101033.aspx

In terms of VSTO you don't use this to directly register the class, this is done for you when you use the Publish command from the forms designer. VSTO is just used to write the code that creates the Inspector window using your custom message class.

http://support.microsoft.com/kb/310244

see code example below..

Outlook.Application olApp = new Outlook.Application();
//mapifolder for earlier versions (such as ol 2003)
Outlook.Folder contacts = olApp.Session.GetDefaultFolder(Outlook.olDefaultFolders.olFolderContacts);
//must start with IPM.   & must be derived from a base item type, in this case contactItem.
Outlook.ContactItem itm = (Outlook.ContactItem)contacts.Items.Add(@"IPM.Contact.CustomMessageClass");
itm.Display(false);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文