_NameSpace.GetSharedDefaultFolder(Recipient, OlDefaultFolders) Method

Definition

Returns a Folder object that represents the specified default folder for the specified user.

public:
 Microsoft::Office::Interop::Outlook::MAPIFolder ^ GetSharedDefaultFolder(Microsoft::Office::Interop::Outlook::Recipient ^ Recipient, Microsoft::Office::Interop::Outlook::OlDefaultFolders FolderType);
public Microsoft.Office.Interop.Outlook.MAPIFolder GetSharedDefaultFolder (Microsoft.Office.Interop.Outlook.Recipient Recipient, Microsoft.Office.Interop.Outlook.OlDefaultFolders FolderType);

Parameters

Recipient
Recipient

The owner of the folder. Note that the Recipient object must be resolved.

FolderType
OlDefaultFolders

The type of folder.

Returns

A Folder object that represents the specified default folder for the specified user.

Remarks

This method is used in a 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).

FolderType can be one of the following OlDefaultFolders constants: olFolderCalendar, olFolderContacts, olFolderDrafts, olFolderInbox, olFolderJournal, olFolderNotes, or olFolderTasks. (The constants olFolderDeletedItems, olFolderOutbox, olFolderJunk, olFolderConflicts, olFolderLocalFailures, olFolderServerFailures, olFolderSyncIssues, olPublicFoldersAllPublicFolders, olFolderRssSubscriptions, olFolderToDo, olFolderManagedEmail, and olFolderSentMail cannot be specified for this argument.)

Applies to