Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The IExceptioninterface contains information about a single exception to a recurring Appointment. The properties are read-only. You can use the IRecurrencePattern::get_Occurrencesmethod to create and manipulate an exception objects.
Methods in Vtable Order
IException methods | Description |
---|---|
Gets the Appointment item that corresponds to this exception. |
|
Gets the date that this exception originally occurred. |
|
Returns TRUEif the exception was caused by a deleted instance. |
|
Gets the main Outlook Mobile IPOutlookAppobject. |
Remarks
An IExceptionobject is created when you alter a recurring Appointment. For example, an exception is created when you change the Startproperty of an Appointmentitem.
You get an exception by first calling the IRecurrencePattern::get_Exceptionsmethod, which returns Exceptionscollection object, and then calling the IExceptions::Itemmethod.
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. |
Copy Code | |
---|---|
void GetFirstExceptionItem(IAppointment * pAppt) { IRecurrencePattern * pRec; IExceptions * pExceptions; IException * pException; // Get the Exception object. pAppt->GetRecurrencePattern(&pRec); pRec->get_Exceptions(&pExceptions); pExceptions->Item(1, &pException); // Free resources. pRec->Release(); pExceptions->Release(); pException->Release(); } |
Requirements
Header | pimstore.h |
Library | Pimstore.lib |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
IExceptionsPocket Outlook Object Model Interfaces