Returns the next period after the specified date with the specified duration which is not occupied by items.
Namespace: MindFusion.Scheduling
Assembly: MindFusion.Scheduling.WebForms
C#
![]() |
---|
public DateTime GetFreePeriod ( |
Visual Basic
![]() |
---|
Public Function GetFreePeriod( _ |
Type: DateTime
The start date and time of the interval in which to search for a free period.
Type: DateTime
The end date and time of the interval in which to search for a free period.
Type: TimeSpan
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.