PocketPlanner Programmer's Guide

Recurrence.Exceptions Property

See Also

Gets the list of all recurrence exceptions.

Namespace: MindFusion.Scheduling
Assembly: PocketPlanner

 Syntax

C#

public ICollection Exceptions { get; }

Visual Basic

Public ReadOnly Property Exceptions As ICollection

 Property Value

A collection containing all exceptions defined for this recurrence.

 Example

The following example traverses all deleted occurrences of a recurrence. The example assumes that recurrence references an existing Recurrence object.

C#

foreach (RecurrenceException exception in recurrence.Exceptions)
{
    if (exception.IsDeleted)
    {
        // Do something here
    }
}

Visual Basic

For Each exception As RecurrenceException in recurrence.Exceptions

    If exception.IsDeleted Then

        ' Do something here

    End If

Next

 See Also