c# - Outlook ContactItem: get containing folder? -
I'm adding an Outlook that manages Outlook contacts. I have a function that receives all the contacts in a folder and its subfolders. Now, I need to determine which folder where a given contact was recovered from. Is it scanning each folder or is it possible to return the path with each contact item?
This works for me:
public string GetFolderFullName ( Outlook.ContactItem ci) {Outlook.MAPIFolder mf = ci.Parent; String path = mf.folderpath; return path; }
Comments
Post a Comment