Platform SDK: Exchange 2000 Server

Add Method

[This is preliminary documentation and subject to change.]

Adds a new Exception object to the collection.

[Visual Basic, VBScript]
Sub Add(Type As String) As IException
[C++]
HRESULT Add(BSTR Type, IExceptions** pVal);
[IDL]
HRESULT Add(
[in] BSTR Type,
[out, retval] IExceptions** pVal);
);
Type

The type of exception being added. The valid values are "Add," "Delete," and "Modify."

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")