Difference between UserProperties and ItemProperties?

T

Tadwick

1. Is the UserProperties collection simply a subset of ItemProperties?

2. When you send an AppointmentItem do UserProperty objects and ItemProperty
objects get transferrred to the MeetingItem that arrives in the recipient's
inbox?
 
K

Ken Slovak - [MVP - Outlook]

1. UserProperties is a subset of ItemProperties, although you can only
add/remove UserProperties. You check that with the IsUserProperty Boolean
property. The ItemProperties collection is zero based, the count doesn't
start at 1, it starts at 0, unlike UserProperties which starts at 1.

2. Try it and see.
 
T

Tadwick

Thanks, Ken

Ken Slovak - said:
1. UserProperties is a subset of ItemProperties, although you can only
add/remove UserProperties. You check that with the IsUserProperty Boolean
property. The ItemProperties collection is zero based, the count doesn't
start at 1, it starts at 0, unlike UserProperties which starts at 1.

2. Try it and see.
 
D

Dmitry Streblechenko

Actually UserProperties collection is really created on top of a special
blob that stores user propery definition. If a property is in the
UserProperties collection, there is guarantee that it will be actually have
a value (which is stored as a named MAPI property).
If you have a custom message class, UserProperties colelction will also
contain the custom properties associated with that form
(IMAPIFormInfo::CalcFormPropSet() on the Extended MAPI level), and, again,
it is not guaranteed that any particular property will actually be set on
the item.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
T

Tadwick

Ken,

I did try and UserProperties appear to be contained in the meeting item that
is sent to a recipient; however, the object type for retrieving
UserProperties is olMeeting when the invitation arrives and olAppointment
once the invitation has been accepted. So, it makes it a bit more difficult
to manage but it is doable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top