CalendarSharing
CalendarSharing
CalendarSharing
Interface
Definition
Represents a set of utilities for sharing calendar information.
public interface class CalendarSharing : Microsoft::Office::Interop::Outlook::_CalendarSharing
[System.Runtime.InteropServices.Guid("000630E2-0000-0000-C000-000000000046")]
public interface CalendarSharing : Microsoft.Office.Interop.Outlook._CalendarSharing
Public Interface CalendarSharing
Implements _CalendarSharing
- Derived
- Attributes
- Implements
Remarks
This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _CalendarSharing.
You can use the GetCalendarExporter() method of a Folder object that represents a calendar folder to create a CalendarSharing 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.
You can use the SaveAsICal(String) method to save calendar information in an iCalendar (.ics) file for sharing a calendar as a URL, or use the ForwardAsICal(OlCalendarMailFormat) method to create a MailItem for sharing a calendar as a payload.
Note: The CalendarSharing object only supports exporting the iCalendar format.
Returns an Application object that represents the parent Outlook application for the object. Read-only. Returns or sets an OlCalendarDetail value indicating the level of detail for calendar items included in the iCalendar (.ics) file created by the ForwardAsICal(OlCalendarMailFormat) or SaveAsICal(String) methods of the CalendarSharing object. Read/write. Returns an OlObjectClass constant indicating the object's class. Read-only. Returns or sets a DateTime value that indicates the inclusive end date of the range of calendar items to be shared by the CalendarSharing object. Read/write. Returns the Folder containing the calendar items to be shared by the CalendarSharing object. Read-only. Returns or sets a Boolean (bool in C#) value that indicates whether attachments for calendar items should be included in the iCalendar (.ics) file created by the ForwardAsICal(OlCalendarMailFormat) or SaveAsICal(String) methods of the CalendarSharing object. Read/write. Returns or sets a Boolean (bool in C#) value that indicates whether private details for calendar items should be included in the iCalendar (.ics) file created by the ForwardAsICal(OlCalendarMailFormat) or SaveAsICal(String) methods of the CalendarSharing object. Read/write. Returns or sets a Boolean (bool in C#) value that indicates whether all calendar items in the folder should be included in the iCalendar (.ics) file created by the ForwardAsICal(OlCalendarMailFormat) or SaveAsICal(String) methods of the CalendarSharing object. Read/write. Returns the parent Object of the specified object. Read-only. Returns or sets a Boolean (bool in C#) 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(OlCalendarMailFormat) or SaveAsICal(String) methods of the CalendarSharing object. Read/write. Returns the NameSpace object for the current session. Read-only. Returns or sets a DateTime value that indicates the inclusive start date of the range of calendar items to be shared by the CalendarSharing object. Read/write. Forwards calendar information from the parent Folder of the CalendarSharing object as the payload of a MailItem. Exports calendar information from the parent Folder of the CalendarSharing object as an iCalendar calendar (.ics) file.
Properties
Application
Application
Application
CalendarDetail
CalendarDetail
CalendarDetail
Class
Class
Class
EndDate
EndDate
EndDate
Folder
Folder
Folder
IncludeAttachments
IncludeAttachments
IncludeAttachments
IncludePrivateDetails
IncludePrivateDetails
IncludePrivateDetails
IncludeWholeCalendar
IncludeWholeCalendar
IncludeWholeCalendar
Parent
Parent
Parent
RestrictToWorkingHours
RestrictToWorkingHours
RestrictToWorkingHours
Session
Session
Session
StartDate
StartDate
StartDate
Methods
ForwardAsICal(OlCalendarMailFormat)
ForwardAsICal(OlCalendarMailFormat)
ForwardAsICal(OlCalendarMailFormat)
SaveAsICal(String)
SaveAsICal(String)
SaveAsICal(String)