Platform SDK: Exchange 2000 Server |
[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
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.
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