Gets the work time intervals after a specified date and time and until summing up to a specified required work duration considering the suite of assigned resource schedules to be resolved but without exceeding a specified maximum search duration.
Namespace:
DlhSoft.Windows.DataAssembly: DlhSoft.ProjectData.Core (in DlhSoft.ProjectData.Core.dll)
Syntax
| C# |
|---|
public ReadOnlyCollection<TimeInterval> GetNextWorkTimeIntervals( DateTime start, TimeSpan requiredWorkDuration, TimeSpan maxSearchDuration ) |
| Visual Basic (Declaration) |
|---|
Public Function GetNextWorkTimeIntervals ( _ start As DateTime, _ requiredWorkDuration As TimeSpan, _ maxSearchDuration As TimeSpan _ ) 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.
- maxSearchDuration
- Type: System..::.TimeSpan
The maximum duration to search.
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 assigned resource schedules to be resolved but without exceeding the specified maximum search duration.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | The specified required work duration is not positive or the specified maximum search duration is not positive. |