Add Method (IExceptions)
Topic Last Modified: 2006-06-13
Adds a new Exception object to the collection.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
Sub Add( Type As String) As IExceptions
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:
Dim objAppt as New Appointment
Dim objEXDATE as IException
...
Set objEXDATE = objAppt.Exceptions.Add("Delete")