Search
IProjectViewModel.FindFreePeriod Method (IResourceViewModel, TimeSpan)
See Also
 





Finds an unallocated period with the specified duration for the specified resource, within the project's time interval.

Namespace: MindFusion.DataViews.Wpf
Assembly: MindFusion.DataViews.Wpf

 Syntax

C#  Copy Code

DateTime FindFreePeriod (
    IResourceViewModel resource,
    TimeSpan duration
)

Visual Basic  Copy Code

Function FindFreePeriod( _
    resource As IResourceViewModel, _
    duration As TimeSpan _
) As DateTime

 Parameters

resource

The resource for which to find a free period.

duration

The required duration of the searched period.

 Return Value

The start time of the found period, or DateTime.MinValue, if the request cannot be satisfied.

 See Also