編輯

共用方式為


_NameSpace.OpenSharedFolder(String, Object, Object, Object) Method

Definition

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

public Microsoft.Office.Interop.Outlook.MAPIFolder OpenSharedFolder (string Path, object Name, object DownloadAttachments, object UseTTL);
Public Function OpenSharedFolder (Path As String, Optional Name As Object, Optional DownloadAttachments As Object, Optional UseTTL As Object) As MAPIFolder

Parameters

Path
String

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

Name
Object

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

DownloadAttachments
Object

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

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

Returns

A Folder object that represents the shared folder.

Remarks

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

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

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

Applies to