Why is my UserProperties collection empty?

I am using Outlook 2003 PIA and VS 2005 to access items in a shared folder. The collection is item.UserProperties

always returned empty, even though the items have multiple custom fields.

If I add the property to the code using UserProperties.Add

, it will be saved correctly with the element and then available in UserProperties the next time the element is accessed. However, using MFCMapi

to access the element, I see no difference between this new property and the existing custom ones.

Any thoughts?

Thank.

+1


source to share


1 answer


How are items in shared folders created using webdav? If they are created using webdav, you cannot access them with the item.UserProperties method because the blob value used by Outlook is not being populated correctly.

Check this link for more details.



I am using a dedicated .Net Extended Mapi Wrapper to read these properties.

But you can always use ransom or use Outlook 2007, you can access them directly.

+1


source







All Articles