Platform SDK: CDO for Windows 2000

Subject Property

The Subject property specifies the subject of the message.

[Visual Basic]
Property Subject as String
[C++]
HRESULT get_Subject(BSTR* pVal);
HRESULT put_Subject(BSTR Val);
IDL]
HRESULT [propget] Subject([out,retval] BSTR* pVal);
HRESULT [propput] Subject([in] BSTR Val);

Remarks

This property is also available as the urn:schemas:mailheader:subject and urn:schemas:httpmail:subject fields.

The Subject property is required on newsgroup messages. If you do not set the Subject property before calling the Post method, an error is returned.

The default value of the Subject property is an empty string.

See Also

urn:schemas:mailheader:subject

urn:schemas:httpmail:subject