Share via


Subject Property (Message Object)

Subject Property (Message Object)

The Subject property returns or sets the subject of the message as a string. Read/write.

Syntax

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.

Data Type

String

Remarks

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.

Example

This code fragment sets the subject of a message:

Dim objMessage As Message ' assume valid message
objMessage.Subject = "CDO Library: Check It Out"
 

See Also

Concepts

Text Property (Message Object)
Message Object