_NameSpace.GetSharedDefaultFolder Method

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

[DispIdAttribute()]
MAPIFolder GetSharedDefaultFolder(
	Recipient Recipient,
	OlDefaultFolders FolderType
)

Parameters

Recipient
Type: Microsoft.Office.Interop.Outlook.Recipient

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

FolderType
Type: Microsoft.Office.Interop.Outlook.OlDefaultFolders

The type of folder.

Return Value

Type: Microsoft.Office.Interop.Outlook.MAPIFolder
A Folder object that represents the specified default folder for the specified user.

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.)

Show: