Message Object
Message Object
The Message object represents a single message, item, document, or form in a folder.
At a Glance
Specified in type library: |
CDO.DLL |
First available in: |
CDO Library version 1.0.a |
Parent objects: |
Messages collection |
Child objects: |
Attachments collection Fields collection Recipients collection |
Default property: |
Properties
Name |
Available since version |
Type |
Access |
1.0.a |
String |
Read-only |
|
1.0.a |
Attachment object or Attachments collection object |
Read-only |
|
1.2 |
String array |
Read/write |
|
1.0.a |
Long |
Read-only |
|
1.0.a |
(Obsolete. Do not use.) |
Read/write |
|
1.0.a |
String |
Read/write |
|
1.0.a |
String |
Read/write |
|
1.0.a |
Boolean |
Read/write |
|
1.0.a |
Boolean |
Read/write |
|
1.0.a |
Field object or Fields collection object |
Read-only |
|
1.0.a |
String |
Read-only |
|
1.0.a |
String |
Read-only |
|
1.0.a |
Long |
Read/write |
|
1.0.a |
IUnknown object |
Read/write (Note: Not available to Visual Basic applications) |
|
1.0.a |
Messages collection object |
Read-only |
|
1.0.a |
Boolean |
Read/write |
|
1.0.a |
Recipients object or Recipients collection object |
Read/write |
|
1.0.a |
AddressEntry object |
Read/write |
|
1.2 |
Long |
Read/write |
|
1.0.a |
Boolean |
Read/write |
|
1.0.a |
Session object |
Read-only |
|
1.0.a |
Boolean |
Read/write |
|
1.0.a |
Long |
Read-only |
|
1.0.a |
String |
Read-only |
|
1.0.a |
String |
Read/write |
|
1.0.a |
Boolean |
Read/write |
|
1.0.a |
String |
Read/write |
|
1.2 |
Variant (vbDate format) |
Read-only |
|
1.2 |
Variant (vbDate format) |
Read/write |
|
1.2 |
Variant (vbDate format) |
Read-only |
|
1.0.a |
Variant (vbDate format) |
Read/write |
|
1.0.a |
Variant (vbDate format) |
Read/write |
|
1.0.a |
String |
Read/write |
|
1.0.a |
Boolean |
Read/write |
Methods
Name |
Available since version |
Parameters |
1.1 |
folderID as String, (optional) storeID as String |
|
1.0.a |
(optional) DeletedItems as Boolean |
|
1.2 |
(none) |
|
1.1 |
objMessage2 as Object |
|
1.1 |
folderID as String, (optional) storeID as String |
|
1.0.a |
(optional) parentWindow as Long |
|
1.2 |
(none) |
|
1.2 |
(none) |
|
1.0.a |
(optional) saveCopy as Boolean, (optional) showDialog as Boolean, (optional) parentWindow as Long |
|
1.0.a |
(optional) makePermanent as Boolean, (optional) refreshObject as Boolean |
Remarks
Microsoft® Visual Basic® programmers can create new Message objects using the Messages collection’s Add method.
C/C++ programmers can create new Message objects with the OLE function CoCreateInstance.
A message can be obtained from its parent Messages collection using the collection’s Item property. To get to the Messages collection in a folder, use the Folder object’s Messages property. If you know a message’s unique identifier, you can obtain it directly from the Session object’s GetMessage method.
A Message object can be rendered into HTML hypertext using the CDO Rendering ObjectRenderer object. To specify this, set the object renderer's DataSource property to the Message object itself. The individual properties that can be rendered with the RenderProperty method are indicated in the Message object property descriptions.
A Message object can also be rendered as the parent of a Recipients collection, using the ContainerRenderer object. The individual properties that can be rendered with the RenderProperty method are indicated in the Message object property descriptions.