GetSharedDefaultFolder Method

See Also         Example         Applies To

Returns a MAPIFolder object that represents the specified default folder for the specified user. This method is most useful in the delegation scenario, where one user has delegated access to another user for one or more of their default folders (for example, their shared Calendar folder).

Syntax

objNameSpace.GetSharedDefaultFolder(RecipientObject, FolderTypeEnum)

objNameSpace   Required. An expression that returns a NameSpace object.

RecipientObject   Required Recipient object. The owner of the folder. The Recipient object must be resolved.

FolderTypeEnum   Required Long. The type of folder. Can be one of the following OlDefaultFolders constants: olFolderCalendar(9), olFolderContacts(10), olFolderDeletedItems(3), olFolderDrafts(16), olFolderInbox(6), olFolderJournal(11), olFolderNotes(12), olFolderOutbox(4), olFolderSentMail(5), or olFolderTasks(13).