Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好,我需要一个解决方案来通过 ID、用户名或别名查找我的 GlobalAddressList 的联系人。
这是我的尝试,但仅用于按名称搜索:
AddressList gal = appl.Session.GetGlobalAddressList(); AddressEntry entry = gal.AddressEntries["xxxx"]; ExchangeUser ae = entry.GetExchangeUser();
调用 Namespace.CreateRecipient、Recipient.Resolve,然后使用 Recipient.AddressEntry。
你是什么意思?EntryID(使用 Namespace.GetAddressEntryFromID)或其他一些 id,例如 SMTP 地址或 NT 帐户名?