Platform SDK: CDO for Windows 2000 |
The IMessage interface defines three collections, which are described in the following table.
IMessage Interface Collections
Name | Description |
---|---|
Attachments | A collection of all attachments for the message. Each attachment is contained within an instance of the BodyPart COM class. |
Fields | A collection of fields for the message. Although many of the fields that correspond to RFC822 header fields can be accessed through properties on the interface, all header fields are present in this collection in raw, possibly RFC 1522 encoded format. |
EnvelopeFields | A collection of the envelope fields for the message. This collection exists only for messages that are in transport through the SMTP service. This collection is used with CDO transport event sinks. For more information, see SMTP/NNTP Transport Event Sinks with CDO. |
The Fields collection is modeled around the Microsoft® ActiveX® Data Objects (ADO) Fields collection interface. Each object in the collection is an object exposing the ADO Field interface. You can use this interface on the object to set information about the field. In most cases, you will work with the Name and Value properties for each Field object.