WeekDay

WeekDay class

Represents a weekday which either defines regular days of a week or exception days in a calendar.

Constructors

NameDescription
WeekDay (4 overloads)Initializes a new instance of the WeekDay class with the specified day type.

Methods

NameDescription
CastToDayTypeCasts .Net’s DayOfWeek to DayType .
CloneReturns a deep copy of the week day.
CreateDefaultWorkingDayCreates default working day.
EqualsReturns a value indicating whether this instance is equal to a specified object.
get_DayTypeGets the type of a day.
get_DayWorkingGets a value indicating whether the specified date or day type is working.
get_FromDateGets the beginning of an exception time.
get_ToDateGets the end of an exception time.
get_WorkingTimesGets WorkingTimeCollection for this WeekDay instance. The collection of working times that define the time worked on the weekday.
GetHashCodeReturns a hash code value for the instance of the WeekDay class.
GetWorkingTimeReturns the working time for a week day.
set_DayWorkingSets a value indicating whether the specified date or day type is working.
set_FromDateSets the beginning of an exception time.
set_ToDateSets the end of an exception time.
SetDefaultWorkingTimeSets default time periods for the specified week day.