View Single Post
  #2  
Old December 21st 06, 02:35 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Read Appointment items in a shared calendar

What do you mean by "detect the user"?

You can use NameSpace.GetSharedDefaultFolder(olFolderCalendar) to get the
default Calendar folders for any mailboxes where you have the appropriate
permissions. If the shared mailbox is loaded as part of your Outlook profile
you can iterate the NameSpace.Folders collection to hit each loaded shared
mailbox and from there dig down through the various Folders collections to
find any folder of any type. Once you have a folder you get its Items
collection.

The Organizer is who created an item. If something changes in an appointment
you can use a lower level API such as CDO 1.21 or Extended MAPI or
Redemption (www.dimastr.com/redemption) to read the PR_LAST_MODIFIER_NAME
property (0x3FFA001E ) which is a PT_STRING8 property that gives the name of
the last person to modify the item. That's not exposed in the Outlook object
model.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
ups.com...
I want to create a program in c# that can read my appointmentitems in
all shared calendars, and detect the user of that item. If its possible
to read the shared calendar, can I read the user, or do I have to
create a new field or something ?


Ads