Platform SDK: CDO 1.2.1 |
The Subject property returns or sets the subject of the message as a string. Read/write.
objMessage.Subject
The Subject property is the default property of a Message object, meaning that objMessage is syntactically equivalent to objMessage.Subject in Microsoft® Visual Basic® code.
String
In a conversation thread, the Subject property is often used to set the ConversationTopic property.
The Subject property corresponds to the MAPI property PR_SUBJECT. It can be rendered into HTML hypertext using the CDO Rendering ObjectRenderer object. To specify this, set the object renderer's DataSource property to this Message object and the property parameter of the RenderProperty method to CdoPR_SUBJECT.
This code fragment sets the subject of a message:
Dim objMessage As Message ' assume valid message objMessage.Subject = "CDO Library: Check It Out"