PocketPlanner Programmer's Guide

Schedule.GetAllItems Method (DateTime, DateTime, Resource)

See Also

Retrieves a collection of all events, including recurrent item instances, scheduled to occur in the specified time interval for a specific Resource object.

Namespace: MindFusion.Scheduling
Assembly: PocketPlanner

 Syntax

C#

public ItemCollection GetAllItems (
    DateTime startDate,
    DateTime endDate,
    Resource resource
)

Visual Basic

Public Function GetAllItems ( _
    startDate As DateTime, _
    endDate As DateTime, _
    resource As Resource _
) As ItemCollection

 Parameters

startDate
Specifies the start of the time period.
endDate
Specifies the end of the time period.
resource
A Resource instance that must be related to the items.

 Return Value

A collection that contains the events scheduled to occur in the specified period for the specified resource.

 Remarks

If a recurring event occurs in the specified interval, each occurrence is represented by an Item instance whose RecurrenceState is set to Occurrence.

 See Also