Invite Method

Topic Last Modified: 2006-06-13

This method returns a calendar message used to forward the appointment to another recipient.

Applies To

IAppointment Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Function Invite(    ByVal EmailList As String) As ICalendarMessage
HRESULT Invite
(
        BSTR EmailList,
        ICalendarMessage** pVal
);

Parameters

  • EmailList
    A list of recipient e-mail names.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If the organizer of the appointment calls the Invite method, the new recipients are added to the Attendees collection of the appointment. If an attendee calls the Invite method, the new recipients are not added to the Attendees collection. However, new recipients are added to the Attendees collection when they send an acceptance to the meeting organizer.

Example


Dim iCalMsg As New CalendarMessage
Dim iAppt    As New Appointment
...
iCalMsg = iAppt.Invite ("someone@example.com,another@example.com")
iCalMsg.Message.Send