Common Properties
All the objects in the CDONTS object model—except the NewMail object—share four common properties: Application, Class, Parent, and Session. These properties are all read-only. If you ascertain the value of the Application or Session properties from one CDO object, their values will be the same for any other object in the object model.
As you can see from the object model in Figure 15.1,
the Session object is the highest object in the hierarchy. As such,
it has no Parent or Session property values. These properties always
have a value of Nothing
for any Session object.
The NewMail object has none of these common properties. Any attempt to retrieve the value of any of the properties listed in Table 15.2 for a NewMail object results in a runtime error.
Table 15.2. Common Properties of CDO Objects
Property |
Description |
---|---|
Application |
Always contains the string value "Collaboration Data Objects for NTS Version 1.2." It represents the name of the application using the current session. |
Class |
An integer value representing the type of CDO object:
|
Parent |
The immediate parent object of the current object in the CDO object model. This is the parent according to the object ... |
Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.