Skip to main content
A newer version of this page is available. .

WorkTimeInterval(TimeSpan, TimeSpan) Constructor

Initializes a new instance of the WorkTimeInterval class with the specified start time and end time.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.Core.dll

Declaration

public WorkTimeInterval(
    TimeSpan start,
    TimeSpan end
)

Parameters

Name Type Description
start TimeSpan

A TimeSpan value that specifies the start time of the interval. This value is assigned to the TimeOfDayInterval.Start property.

end TimeSpan

A TimeSpan value that specifies the end time of the interval. This value is assigned to the TimeOfDayInterval.End property.

Remarks

Note that the end parameter’s value should be greater than or equal to the start parameter’s value, otherwise an exception will be thrown. Also, the start.Ticks and end.Ticks should be greater than or equal to 0.

See Also