Platform SDK: Exchange 2000 Server

Add Method

[This is preliminary documentation and subject to change.]

Adds a new Attendee object to the collection.

[Visual Basic,VBScript]
Sub Add([Address As String]) As CDO.Attendee
[C++]
HRESULT Add([BSTR Address,] IAttendee** pVal);
[IDL]
HRESULT Add(
   [in,optional] BSTR Address,
   [out,retval] IAttendee** pVal);
Address
The optional SMTP address of the attendee being added.

Remarks

By specifying the SMTP address of the attendee in the Add method, you can add an attendee with a single line of code. The attendee is added as a required participant. For example:

iAppt.Attendees.Add("someone@microsoft.com")

Is equivalent to:

Set Atnd = iAppt.Attendees.Add
Atnd.Address = "someone@microsoft.com"
Atnd.Role = cdoRequiredParticipant