Click to Rate and Give Feedback
MSDN
MSDN Library
CDO 1.2.1
CDO Library
CDO Reference
Message Object
 Subject Property (Message Object)
Collapse All/Expand All Collapse All
Subject Property (Message Object)

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"
 
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker