This documentation is archived and is not being maintained.

MAPIFolder.GetCalendarExporter Method

Creates a CalendarSharing object for the specified Folder.

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

CalendarSharing GetCalendarExporter()

Return Value

Type: Microsoft.Office.Interop.Outlook.CalendarSharing
A CalendarSharing object for the specified folder.

The GetCalendarExporter method automatically sets the defaults for the CalendarSharing class to the standard default options used by the Folder object. The GetCalendarExporter method can only be used on calendar folders. An error occurs if you use the method on Folder objects that represent other folder types.


The CalendarSharing object only supports exporting the iCalendar (.ics) file format.