PocketPlanner Programmer's Guide

Recurrence.GetOccurrence Method (Int32, ref Boolean, Boolean)

See Also

Returns the occurrence having the specified index.

Namespace: MindFusion.Scheduling
Assembly: PocketPlanner

 Syntax

C#

public Item GetOccurrence (
    int index,
    ref bool isDeleted,
    bool noException
)

Visual Basic

Public Function GetOccurrence ( _
    index As Integer, _
    ByRef isDeleted As Boolean, _
    noException As Boolean _
) As Item

 Parameters

index
The index of the occurrence to retrieve.
isDeleted
If the specified occurrence is an exception, this parameter contains upon function completion whether the exception is deleted or not.
noException
Specifies whether to return the original item, in case this occurrence is an exception.

 Return Value

A reference to the occurrence with the specified index or null (Nothing in Visual Basic), if there is no such occurrence.

 Remarks

This function might take considerable amount of time if you specify a large index in an infinite recurrence.

 See Also