In The Hand LtdIn The Hand
GetOccurrence Method (dateOfOccurrence)
NamespacesInTheHand.WindowsMobile.PocketOutlookAppointmentRecurrenceGetOccurrence(DateTime)
.NET Components for Mobility
Returns a specific instance of an Appointment occurring on a specific date.
Declaration Syntax
C#Visual Basic
public Appointment GetOccurrence(
	DateTime dateOfOccurrence
)
Public Function GetOccurrence ( _
	dateOfOccurrence As DateTime _
) As Appointment
Parameters
dateOfOccurrence (DateTime)
The DateTime in local time of the Appointment to retrieve.
Return Value
Appointment matching that occurence, or null if there are no occurrences in the specified date.
Remarks
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.
Exceptions
ExceptionCondition
ArgumentExceptionAn Occurrence was not found matching the specified DateTime value.

Assembly: InTheHand.WindowsMobile.PocketOutlook (Module: InTheHand.WindowsMobile.PocketOutlook) Version: 7.0.0.0