다음을 통해 공유


Add Method (IRecurrencePatterns)

Topic Last Modified: 2006-06-13

Adds a new RecurrencePattern object to the collection.

Applies To

IRecurrencePatterns Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Sub Add(    Type As String) As IRecurrencePattern
HRESULT Add
(
        BSTR Type,
        IRecurrencePattern** pVal
);

Parameters

  • Type
    The type of appointment instance to be added to the

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

To add the appointment instances defined by this RecurrencePattern object to a recurring appointment, specify the Type parameter as ADD. To delete the appointment instances defined by this RecurrencePattern object from a recurring appointment, specify the Type parameter as DELETE.

The Type value ADD corresponds to the iCalendar RRULE. The Type value DELETE corresponds to the iCalendar EXRULE.