Share via


_CalendarSharing.SaveAsICal Method

Exports calendar information from the parent Folder of the CalendarSharing object as an iCalendar calendar (.ics) file.

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

Syntax

'Declaration
<DispIdAttribute()> _
Sub SaveAsICal ( _
    Path As String _
)
'Usage
Dim instance As _CalendarSharing
Dim Path As String

instance.SaveAsICal(Path)
[DispIdAttribute()]
void SaveAsICal(
    string Path
)

Parameters

  • Path
    Type: System.String

    The path and file name of the iCalendar file.

Remarks

The level of detail provided in the iCalendar file is determined by a combination of values in the following CalendarSharing properties:

  • CalendarDetail

  • IncludeAttachments

  • IncludePrivateDetails

  • RestrictToWorkingHours

You can set the IncludeWholeCalendar property to True to export all items contained in the folder, or you can set the StartDate and EndDate properties to limit the exported items to a date range between a specified start date and end date, respectively.

See Also

Reference

_CalendarSharing Interface

_CalendarSharing Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Save a Calendar to Disk