Add Method

Add Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Adds a new Exception object to the collection.

Applies To

IExceptions Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Sub Add
(
    Type As String
) As IExceptions

[C++]HRESULT Add (     BSTR Type,     IExceptions** pVal );

Parameters

  • Type
    The type of exception being added. The valid values are Add, Delete, and Modify.
  • pVal
    Returned reference to an IExceptions Interface.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Adding an Exception object with type "Add" adds an appointment instance to a recurring appointment. This exception object generates the iCalendar RDATE property.

Adding an Exception object with type "Delete" removes an appointment instance from a recurring appointment. This exception object generates the iCalendar EXDATE property.

Adding an Exception object with type "Modify" changes one or more properties of an appointment instance of a recurring appointment.

Example

The following example creates an Exception object to delete an instance of a recurring appointment:

[Visual Basic]

Dim objAppt as New Appointment Dim objEXDATE as IException ... Set objEXDATE = objAppt.Exceptions.Add("Delete")

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.