Add Method
Add Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Adds a new Attendee object to the collection.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
[Visual Basic]Sub Add
(
[Address As String]
) As CDO.Attendee
[C++]HRESULT Add ( BSTR Address, IAttendee** pVal );
Parameters
- Address
The optional SMTP address of the attendee being added.- pVal
Returned reference to an IAttendee Interface.
Return Value
Returns S_OK if successful, or an error value otherwise.
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@example.com")
is equivalent to:
Set Atnd = iAppt.Attendees.Add Atnd.Address = "someone@example.com" Atnd.Role = cdoRequiredParticipant
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.