RDOExceptions object

 

RDOExceptions represents a collection of exceptions of a recurring appointment .

 

Returned by:

RDORecurrencePattern.Exceptions

 

The example below lists all exceptions of a recurring appointment.

set Pattern = Appointment.GetRecurrencePattern
set Exceptions = Pattern.Exceptions
for each Exception in Exceptions
    Debug.Print "Original date: " & Exception.OriginalDate
    set Item = Exception.Item
    if not Item Is Nothing Then 'it can be NULL if it is a deleted exception
        Debug.Print "New date: " & Item.Start
    End If
next

 

Properties

Methods

 


Derived from: IDispatch


Properties


Count

Returns the number of exceptions in the collection

 

Methods


Clear
Clear all appointment expectations restoring the original recurrence pattern with no exceptions.
 

Item(Index)

Returns an exception (RDOException object) with the given index or date

 

Index - Variant. Either an integer index (1 through Count) or a date. In case of a date, if no exception exists on the given date, error is raised.

 

 
Restore(IndexOrDate)
Restores a particular exception with the given index or start date to the original state. The exception is removed from the collection.

IndexOrDate - variant. Either the index (1 through Count) or Date on which the given exception occurs.