Share via


IException

Send Feedback

The IException interface contains information about a single exception to a recurring appointment. The properties are read-only. Use GetOccurrence on an IRecurrencePattern object to create or manipulate an exception.

Methods in Vtable Order

IException methods PPC SP Description
get_AppointmentItem X X Gets the Appointment item that corresponds to this exception.
get_OriginalDate X X Gets the date this exception originally occurred.
get_Deleted X X Returns TRUE if the exception is due to a deleted instance.
get_Application X X Gets the main Outlook Mobile IPOutlookApp object.

Remarks

An IException object is created when you alter a recurring appointment. For example, if you change the Start property of one IAppointment item, this creates an exception.

You get an exception by first calling the get_Exceptions property method on an IRecurrencePattern object to get the Exceptions collection object, and then calling the IExceptions::Item method.

Code Example

The following code example gets the first exception item in the exceptions collection of a recurring appointment.

Note   To make the following code example easier to read, security checking and error handling are not included. This code example should not be used in a release configuration unless it has been modified to include them.

void GetFirstExceptionItem(IAppointment * pAppt)
{
    IRecurrencePattern * pRec;
    IExceptions * pExceptions;
    IException * pException;

    // Get the exception item.
    pAppt->GetRecurrencePattern(&pRec);
    pRec->get_Exceptions(&pExceptions);
    pExceptions->Item(1, &pException);

    // Release objects.
    pRec->Release();
    pExceptions->Release();
    pException->Release();
}

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: pimstore.h
Library: pimstore.lib

See Also

IExceptions | Pocket Outlook Object Model API Interfaces | Pocket Outlook Object Model API Enumerations

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.