Object Model

The object model for the CDO for NTS Library is hierarchical. The following table shows the containment hierarchy. Each indented object is a child of the object under which it is indented. An object is the parent of every object at the next level of indentation under it. For example, an Attachments collection and a Recipients collection are both child objects of a Message object, and a Messages collection is a parent object of a Message object. However, a Messages collection is not a parent object of a Recipients collection.

        Session
            Folder (Inbox or Outbox)
                Messages collection
                    Message
                        AddressEntry
                        Attachments collection
                            Attachment
                        Recipients collection
                            Recipient
        NewMail

The AddressEntry object is not hierarchically contained by the Message object, but its only access is through the message's Sender property, so it returns the Message object in its Parent property. The NewMail object is independent of the rest of the hierarchy and and does not access any of the other objects.


© 1997 by Microsoft Corporation. All rights reserved.