Export (0) Print
Expand All
Expand Minimize

Subject Property (Message Object)

Exchange Server 2003

Topic Last Modified: 2004-06-09

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"
 
Show:
© 2015 Microsoft