Skip to main content

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.v24.1.Core.dll

NuGet Package: DevExpress.Scheduler.Core

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