Platform SDK: Exchange 2000 Server

Addressing a Calendar Message

[This is preliminary documentation and subject to change.]

You can add attendees to a meeting using the Attendees collection of the Appointment object. The Attendees collection can contain one or more attendees. You can use the same Attendee object for each attendee.

When you create a Calendar Message requesting a meeting, the message is automatically addressed to each attendee in the Attendees collection.

To address a calendar message

  1. Create an Attendee object.
  2. Set the properties of the Attendee object.
  3. Add each attendee using the same Attendee object.

The following code example shows two attendees being added to a meeting request. The user "someone" is the required attendee, and the user "another" is the optional attendee.

[Visual Basic]
Dim iAppt      As New Appointment
Dim iAttendee  As Attendee

'Add a required attendee
Set iAttendee = iAppt.Attendees.Add
iAttendee.Address = "someone@" & DomainName
iAttendee.Role = cdoRequiredParticipant

'Add an optional attendee
Set iAttendee = iAppt.Attendees.Add
iAttendee.Address = "another@" & DomainName
iAttendee.Role = cdoOptionalParticipant