Gets the work time intervals after a specified date and time and until summing up to a specified required work duration considering a suite of preferred schedules that must be resolved.
Namespace:
DlhSoft.Windows.Data
Assembly:
DlhSoft.ProjectData.Core (in DlhSoft.ProjectData.Core.dll)
Syntax
C# |
---|
public ReadOnlyCollection<TimeInterval> GetNextWorkTimeIntervals( DateTime start, TimeSpan requiredWorkDuration, Schedule[] schedules, bool areIntervalEndsAccepted ) |
Visual Basic (Declaration) |
---|
Public Function GetNextWorkTimeIntervals ( _ start As DateTime, _ requiredWorkDuration As TimeSpan, _ schedules As Schedule(), _ areIntervalEndsAccepted As Boolean _ ) As ReadOnlyCollection(Of TimeInterval) |
Parameters
- start
- Type: System..::.DateTime
The date and time to start searching at.
- requiredWorkDuration
- Type: System..::.TimeSpan
The required work duration sum to get.
- schedules
- Type: array<
DlhSoft.Windows.Data..::.Schedule
>[]()[]
The preferred work schedules to resolve.
- areIntervalEndsAccepted
- Type: System..::.Boolean
Indicates whether or not to accept interval ends as valid times within the returned time interval collection.
Return Value
The work time intervals after the specified date and time and until summing up to the specified required work duration considering the suite of preferred schedules that must be resolved.Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | The specified required work duration is not positive. |