Share via


_SharingItem.OpenSharedFolder Method

Opens a shared folder offered by a sharing invitation.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function OpenSharedFolder As MAPIFolder
'Usage
Dim instance As _SharingItem
Dim returnValue As MAPIFolder

returnValue = instance.OpenSharedFolder()
[DispIdAttribute()]
MAPIFolder OpenSharedFolder()

Return Value

Type: Microsoft.Office.Interop.Outlook.MAPIFolder
A Folder object that represents the shared folder.

Remarks

This method allows the recipient of a sharing invitation to open the shared folder offered by the sender. An error occurs if this method is called on a SharingItem object with a type property value other than olSharingMsgTypeInvite or olSharingMsgTypeInviteAndRequest, or if Outlook cannot connect to the shared folder.

See Also

Reference

_SharingItem Interface

_SharingItem Members

Microsoft.Office.Interop.Outlook Namespace