_NameSpace.OpenSharedFolder Method

Opens a shared folder referenced through a URL or file name.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function OpenSharedFolder ( _
    Path As String, _
    Name As Object, _
    DownloadAttachments As Object, _
    UseTTL As Object _
) As MAPIFolder
'Usage
Dim instance As _NameSpace
Dim Path As String
Dim Name As Object
Dim DownloadAttachments As Object
Dim UseTTL As Object
Dim returnValue As MAPIFolder

returnValue = instance.OpenSharedFolder(Path, _
    Name, DownloadAttachments, UseTTL)
[DispIdAttribute()]
MAPIFolder OpenSharedFolder(
    string Path,
    Object Name,
    Object DownloadAttachments,
    Object UseTTL
)

Parameters

  • Path
    Type: System.String

    The URL or local file name of the shared folder to be opened.

  • Name
    Type: System.Object

    The name of the Really Simple Syndication (RSS) feed or Webcal calendar. This parameter is ignored for other shared folder types.

  • DownloadAttachments
    Type: System.Object

    Indicates whether to download enclosures (for RSS feeds) or attachments (for Webcal calendars.) This parameter is ignored for other shared folder types.

  • UseTTL
    Type: System.Object

    Indicates whether the Time To Live (TTL) setting in an RSS feed or WebCal calendar should be used. This parameter is ignored for other shared folder types.

Return Value

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

Remarks

This method is used to access the following shared folder types:

  • Webcal calendars (webcal://mysite/mycalendar)

  • RSS feeds (feed://mysite/myfeed)

  • Microsoft SharePoint Foundation folders (stssync://mysite/myfolder)

  • iCalendar calendar (.ics) files

  • vCard contact (.vcf) files

  • Outlook message (.msg) files

Note

This method does not support iCalendar appointment (.ics) files. To open iCalendar appointment files, you can use the OpenSharedItem method of the NameSpace object.

You can use the GetSharedDefaultFolder method of the Namespace object to share default folders, such as the Inbox folder, in Exchange.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Open and Display the Contents of an iCalendar File

How to: Subscribe to an RSS Feed