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.
我正在维护一个管理 Outlook 联系人的 Outlook 插件。我有一个函数可以获取文件夹及其子文件夹中的所有联系人。现在,我需要确定从哪个文件夹中检索给定联系人。如果不扫描每个文件夹或返回每个联系人项目的路径,这是否可能?
这对我有用:
public string GetFolderFullName(Outlook.ContactItem ci) { Outlook.MAPIFolder mf = ci.Parent; string path = mf.FolderPath; return path; }