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)

Syntax

'Declaration
<DispIdAttribute()> _
Function GetCalendarExporter As CalendarSharing
'Usage
Dim instance As MAPIFolder
Dim returnValue As CalendarSharing

returnValue = instance.GetCalendarExporter()
[DispIdAttribute()]
CalendarSharing GetCalendarExporter()

Return Value

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

Remarks

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.

Note

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

See Also

Reference

MAPIFolder Interface

MAPIFolder Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Share Free/Busy Schedule Within a Specified Period in a Calendar

How to: Share Calendar Information Through E-Mail

How to: Save a Calendar to Disk