_CalendarSharing.RestrictToWorkingHours Property
Returns or sets 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. Read/write.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
Property RestrictToWorkingHours As Boolean
Get
Set
'Usage
Dim instance As _CalendarSharing
Dim value As Boolean
value = instance.RestrictToWorkingHours
instance.RestrictToWorkingHours = value
bool RestrictToWorkingHours { get; set; }
Property Value
Type: System.Boolean
True if calendar items that do not occur within working hours should be included; otherwise, False.
Remarks
This property must be set to false if the CalendarDetail property of the CalendarSharing object is set to olFreeBusyOnly or olFullDetails..