MindFusion.Scheduling for Silverlight Programmer's Guide
IProjectViewModel.FindFreePeriod Method (IResourceViewModel, TimeSpan, DateTime, DateTime)
See Also
 





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

Namespace: MindFusion.DataViews.Silverlight
Assembly: MindFusion.DataViews.Silverlight

 Syntax

C#  Copy Code

DateTime FindFreePeriod (
    IResourceViewModel resource,
    TimeSpan duration,
    DateTime from,
    DateTime to
)

Visual Basic  Copy Code

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

 Parameters

resource

The resource for which to find a free period.

duration

The required duration of the searched period.

from

The start of the time interval in which to search.

to

The end of the time interval in which to search.

 Return Value

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

 See Also

FindFreePeriod Method Overload List
IProjectViewModel Members
IProjectViewModel Interface
MindFusion.DataViews.Silverlight Namespace