Skip to main content

TimeInterval(DateTime, DateTime) Constructor

Initializes a new instance of the TimeInterval class with the specified start date and end date.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

#Declaration

public TimeInterval(
    DateTime start,
    DateTime end
)

#Parameters

Name Type Description
start DateTime

A DateTime value that specifies the start date of the interval. This value is assigned to the TimeInterval.Start property.

end DateTime

A DateTime value that specifies the end date of the interval. This value is assigned to the TimeInterval.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.

See Also