_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)
Syntax
'Declaration
<DispIdAttribute()> _
Function GetSharedDefaultFolder ( _
Recipient As Recipient, _
FolderType As OlDefaultFolders _
) As MAPIFolder
'Usage
Dim instance As _NameSpace
Dim Recipient As Recipient
Dim FolderType As OlDefaultFolders
Dim returnValue As MAPIFolder
returnValue = instance.GetSharedDefaultFolder(Recipient, _
FolderType)
[DispIdAttribute()]
MAPIFolder GetSharedDefaultFolder(
Recipient Recipient,
OlDefaultFolders FolderType
)
Parameters
Recipient
Type: Microsoft.Office.Interop.Outlook.RecipientThe owner of the folder. Note that the Recipient object must be resolved.
FolderType
Type: Microsoft.Office.Interop.Outlook.OlDefaultFoldersThe type of folder.
Return Value
Type: Microsoft.Office.Interop.Outlook.MAPIFolder
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.)
See Also
Reference
Microsoft.Office.Interop.Outlook Namespace