_CalendarSharing.RestrictToWorkingHours Property

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 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
<DispIdAttribute()> _
Property RestrictToWorkingHours As Boolean
    Get
    Set
'Usage
Dim instance As _CalendarSharing
Dim value As Boolean

value = instance.RestrictToWorkingHours

instance.RestrictToWorkingHours = value
[DispIdAttribute()]
bool RestrictToWorkingHours { get; set; }

Property Value

Type: System.Boolean

Remarks

True indicates that the calendar items that do not occur within working hours should be included.

This property must be set to False if the CalendarDetail property of the CalendarSharing object is set to olFreeBusyOnly or olFullDetails.

See Also

Reference

_CalendarSharing Interface

_CalendarSharing Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Share Calendar Information Through E-Mail

How to: Save a Calendar to Disk