I am working on an application that needs to pull contact data from a public folder.
I am able to pull contact data from a user's mailbox with the following code:
ContactsFolder contactsfolder = ContactsFolder.Bind(service,
new PropertySet(BasePropertySet.IdOnly, FolderSchema.TotalCount));
int numItems = contactsfolder.TotalCount < 1000 ? contactsfolder.TotalCount : 1000;
ItemView view = new ItemView(numItems);
view.PropertySet = new PropertySet(BasePropertySet.IdOnly, ContactSchema.DisplayName);
FindItemsResults<Item> contactItems = service.FindItems(WellKnownFolderName.Contacts, view);
If I replace WellKnownFolderName.Contac
ts with the Folder ID of the public folder I still get the results from WellKnownFolderName.Contac
ts. How can I get contacts from a public folder?