Returns the next period after the specified date with the specified duration which is not occupied by items.
Namespace: MindFusion.Scheduling
Package: MindFusion.Scheduling.WebForms
C#
![]() |
---|
public DateTime GetFreePeriod ( |
Visual Basic
![]() |
---|
Public Function GetFreePeriod( _ |
The start date and time of the interval in which to search for a free period.
The end date and time of the interval in which to search for a free period.
The required minimum duration of the period.
Type: DateTime
An instance of the System.DateTime structure that represents the start time of the period found or DateTime.MinValue if none.
If there are recurring items in the schedule, the function might take very long to execute especially if a period with the specified duration doesn't exist.