IAppointment::Save

Send Feedback

The Save method saves an appointment item.

Syntax

HRESULT Save ();

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

  • E_CANTCHANGEDATE
    The user changed the date, and it should have thrown an exception — but it did not.
  • E_EXCEPTIONSAMEDAY
    The user changed the date, and it overlaps with another date, and it should have thrown an exception — but it did not.
  • E_OVERLAPPINGEXCEPTION
    The appointment is not valid because it overlaps another appointment (and generated an overlapping exception).
  • E_INVALIDDATES
    The appointment is not valid because its recurrence duration (minimum period) is greater than the length of the recurrence pattern.
  • E_INVALIDREMINDERTIME
    The appointment is not valid because its recurrence duration (minimum period) is not greater than or equal to the length of time before the appointment reminder.
  • S_OK
    The method completed successfully.

Remarks

You must call IAppointment::Save on the appointment before using IItem::SetProps to set either PIMPR_MEETING_OWNER_CRITICAL_CHANGE or PIMPR_ATTENDEES_CRITICAL_CHANGE.

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

How to: Create a PIM Item | IAppointment | 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.