Platform SDK: Exchange 2000 Server

CDO BodyPart Object Hierarchies

[This is preliminary documentation and subject to change.]

Message bodies are organized in CDO as hierarchies of BodyPart objects. In MIME-formatted messages, each body part in the hierarchy is a BodyPart object whether it is a multipart body part, or it is a content body part. The root of the hierarchy is either a Message or CalendarMessage object. The following figure illustrates a possible hierarchy.

Example BodyPart Hierarchy

Navigation through the body part hierarchy is facilitated through the IBodyPart.BodyParts collection and the IBodyPart.Parent property on each BodyPart object. Either a Message or CalendarMessage object is the root of the hierarchy and IBodyPart.Parent does not return an object reference. The IBodyPart.BodyParts collection is empty for content body parts.