Version

OwnerTimeSlotSettings Class

Enables customization of workdays, working hours, and time range appearances for an Owner.
Syntax
'Declaration
 
Public Class OwnerTimeSlotSettings 
   Inherits TimeSlotSettings
public class OwnerTimeSlotSettings : TimeSlotSettings 
Remarks

The OwnerTimeSlotSettings class is the base class from which the OwnerDateSettings, DayOfWeekSettings, and OwnerRecurringDateSettings classes derive. Through the functionality inherited from this base class, each of these classes provide the ability to:

  • Designate a date, day of the week, or set of dates (as defined by a recurring pattern) as a "workday"
  • Designate multiple, arbitrary ranges of time as "working hours"
  • Assign an appearance, to be applied to any arbitrary range of time

The IsWorkDay property can be set explicitly to false to override any previously defined working hours, or explicitly set to true to override more general settings such as the value of a DayOfWeek object's IsWorkDay property. When left at its default value, the next object in the property resolution hierarchy is evaluated.

The WorkingHours collection provides a repository for TimeRange objects. The collection provides a way to define any number of contiguous or discontiguous ranges of time to be considered as working hours for the date or day of the week to which they belong. This provides an extension of the functionality provided by the existing WorkDayStartTime and WorkDayEndTime properties of the DayOfWeek object; where those properties only provide the ability to define one single, contiguous range of time as the working hours for the day, the WorkingHours collection allows a way to define "breaks" in the working day.

The TimeRangeAppearances collection provides a repository for TimeRangeAppearance objects. The collection provides a way to define an appearance for a given range of time, using the same syntax as that used to add members to the WorkingHours collection.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also