Outlook 插件 - 搜索全局地址簿

发布于 2024-09-01 03:18:58 字数 425 浏览 2 评论 0 原文

有谁知道如何在交换服务器上搜索全球通讯录?看来“地址簿”与公共联系人列表不同,因此这个流行的示例代码(或类似代码)指向一组完全不同的联系人:

Outlook.Application app = new Outlook.Application();
Outlook._NameSpace olNS = app.GetNamespace("MAPI");
Outlook._Folders oFolders = olNS.Folders;
Outlook.MAPIFolder oContactsFolder = olNS.Folders["Public Folders"].Folders["All Public Folders"].Folders["Contacts"];

我需要搜索特定的联系人姓名。 PS:- 我使用的是 Outlook 2007。 非常感谢...

Does anyone know how to search the Global Address Book on the exchange server? It seems the 'Address Book' is different to a public contact list, hence this popular example code (or similar) points to a completely different set of contacts:

Outlook.Application app = new Outlook.Application();
Outlook._NameSpace olNS = app.GetNamespace("MAPI");
Outlook._Folders oFolders = olNS.Folders;
Outlook.MAPIFolder oContactsFolder = olNS.Folders["Public Folders"].Folders["All Public Folders"].Folders["Contacts"];

I need to search for a specific contact name. PS:- I'm using outlook 2007.
Many Thanks...

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

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

发布评论

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

评论(2

沩ん囻菔务 2024-09-08 03:18:58

如果您在线,则可以使用 ADSI 进行通话,离线时您可以使用在查看扩展的mapi时,这里有一个答案使用救赎。

If you are online a call using ADSI would be the way to go, offline you are in looking at extended mapi there is an answer to that here on SO using redemption.

旧夏天 2024-09-08 03:18:58

该过程非常繁琐且容易出错。
我想您可能会发现 Add-In Express 上的以下文章很有用:

HowTo:将基于 Exchange 的电子邮件地址转换为 SMTP 电子邮件地址

我认为它不需要他们的工具即可工作,但我不太确定,因为我在尝试时拥有它们。
代码是用 VB 编写的,但如果您愿意,他们有一个 C# 示例项目可供下载。它相当长并且有很多 COM 对象调用,因此需要有这方面的经验。另外,我不太确定它是否适用于 64 位版本的 Outlook。也许你想先尝试一下。

The process is very tedious and error prone.
I think you may find the bellow article at Add-In Express useful:

HowTo: Convert Exchange-based email address into SMTP email address

I think it doesn't need their tools in order to work but I am not quite sure as I had them when I tried it.
The code is in VB but they have a sample project available for download in C# if you prefer. It is rather long and has lots of COM object calls, so experience with that will be necessary. Also I am not quite sure if it will work on the 64 bit version of Outlook. Maybe you want to try this first.

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