Returns a specific instance of an Appointment occurring on a specific date.
| C# | Visual Basic |
public Appointment GetOccurrence( DateTime dateOfOccurrence )
Public Function GetOccurrence ( _ dateOfOccurrence As DateTime _ ) As Appointment
- dateOfOccurrence (DateTime)
- The DateTime in local time of the Appointment to retrieve.
Appointment matching that occurence, or null if there are no occurrences in the specified date.
On Windows Mobile 2003 and onwards you need only specify the Date of the instance to retrieve a valid appointment occurrence.
On previous versions you must also specify the Start of the occurrence otherwise this function will not locate the required occurrence.
This is not correctly documented in the POOM SDK documentation and was acknowledged by a Microsoft developer on the microsoft.public.pocketpc.developer newsgroup on 29/04/2003.
Changes to the Appointment then apply only to it.
If no exception to a recurring pattern exists, a change creates a new RecurrenceException; otherwise it modifies an existing RecurrenceException.| Exception | Condition |
|---|---|
| ArgumentException | An Occurrence was not found matching the specified DateTime value. |