Class CalendarSharing (Outlook VBA)

The class CalendarSharing represents a set of utilities for sharing calendar information.

Class Folder gives access to class CalendarSharing.


Dim csg as CalendarSharing
Set csg = Session.CreateSharingItem.Move.GetCalendarExporter()

Methods

ForwardAsICal - Forwards calendar information from the parent Folder of the CalendarSharing object as the payload of a MailItem.

SaveAsICal - Exports calendar information from the parent Folder of the CalendarSharing object as an iCalendar calendar (.

Properties

CalendarDetail returns or sets an OlCalendarDetail value indicating the level of detail for calendar items included in the iCalendar (.ics) file created by the ForwardAsICal or SaveAsICal methods of the CalendarSharing object.

Class returns an OlObjectClass constant indicating the object's class.

EndDate returns or sets a Date value that represents the inclusive end date of the range of calendar items to be shared by the CalendarSharing object.

Folder returns the Folder containing the calendar items to be shared by the CalendarSharing object.

IncludeAttachments returns or sets a Boolean value that indicates whether attachments for calendar items should be included in the iCalendar (.ics) file created by the ForwardAsICal or SaveAsICal methods of the CalendarSharing object.

IncludePrivateDetails returns or sets a Boolean value that indicates whether private details for calendar items should be included in the iCalendar (.ics) file created by the ForwardAsICal or SaveAsICal methods of the CalendarSharing object.

IncludeWholeCalendar returns or sets a Boolean value that indicates whether all calendar items in the folder should be included in the iCalendar (.ics) file created by the ForwardAsICal or SaveAsICal methods of the CalendarSharing object.

RestrictToWorkingHours returns or sets a Boolean value that indicates whether calendar items that do not occur within working hours should be included in the iCalendar (.ics) file created by the ForwardAsICal or SaveAsICal methods of the CalendarSharing object.

Session returns the NameSpace object for the current session.

StartDate returns or sets a Date that represents the inclusive start date of the range of calendar items to be shared by the CalendarSharing object.

Folder - Represents an Outlook folder.

MailItem - Represents a mail message.

NameSpace - Represents an abstract root object for any data source.