Difference between UserProperties and ItemProperties?

  • Thread starter Thread starter Tadwick
  • Start date Start date
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?
 
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.
 
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.
 
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
-
 
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.
 
Back
Top