VSTO Outlook 2007 唯一邮件 ID

发布于 2024-10-09 02:51:26 字数 215 浏览 0 评论 0原文

我正在使用 VSTO 创建 Outlook 2007 加载项。我需要存储有关每封电子邮件的信息(由用户输入)。我的第一个想法是创建一个小型“数据库”,根据需要引用每封电子邮件。但我似乎无法为此目的找到每封电子邮件的可访问标识符。是否有一个 ID 或其他一些唯一字段可用于我可以使用的每个邮件消息项目?

C# 或 VB.NET 代码都可以。希望这对您来说是一些简单的要点!

提前致谢!

I am creating an Outlook 2007 add-in using VSTO. I need to store information (entered by the user) about each email. My first thought is to create a small "database" that references each email as necessary. But I can't seem to find an accessible identifier for each email for this purpose. Is there an ID or some other unique field that is available for each mail message item that I can use?

C# or VB.NET code is fine. Hopefully this can be some easy points for you!

Thanks in Advance!

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

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

发布评论

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

评论(2

瞎闹 2024-10-16 02:51:26

邮件项目具有多个属性,包括 EntryID属性。您还可以添加自定义属性

The mail item has a number of properties, including EntryID Property. You can also add custom properties.

农村范ル 2024-10-16 02:51:26

Outlook 项目具有唯一的 EntryID 和 StoreID,您稍后需要它们来查找该项目。
例如,如果您创建一个引用 Outlook 电子邮件的数据库,您可能需要一种方法来查找和查找电子邮件。在 Outlook 中打开电子邮件。

要检索 Outlook 项目,您需要知道其 EntryID 和 StoreID,以便可以将值传递给 NameSpace.GetItemFromID(EntryIDItem, EntryIDStore)

您可以在此处阅读有关它的更多信息:
http://msdn.microsoft.com/ en-us/library/office/bb206749(v=office.12).aspx

Outlook items have a unique EntryID and StoreID and you need them both to find the item later.
For example, if you create a database that references Outlook emails, you might want a method for finding & opening the email in Outlook.

To retrieve an Outlook item, you need to know its EntryID and StoreID so you can pass the values to NameSpace.GetItemFromID(EntryIDItem, EntryIDStore)

You can read more about it here:
http://msdn.microsoft.com/en-us/library/office/bb206749(v=office.12).aspx

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文