Platform SDK: CDO for Windows 2000 |
A Message object, like a BodyPart object, has an associated Fields collection and a method that generates its serialized stream. The Fields collection can be retrieved using either the IBodyPart or IMessage interfaces. Regardless of which collection is used, the list of fields is the same.
The IMessage interface also defines the GetStream method, which you use to retrieve the serialized content for the entire message, rather than portions of the hierarchy or directly contained content such as with the IBodyPart.GetStream, IBodyPart.GetDecodedContentStream and IBodyPart.GetEncodedContentStream methods. In most cases, the Message object itself is multipart, and therefore contains no direct content.
Note The Message object exposes both the IMessage and IBodyPart interfaces. These interfaces are distinct and represent a different type of functionality for the object.