다음을 통해 공유


Subject Property (IMessage)

Topic Last Modified: 2006-12-01

The subject of the message.

Applies To

IMessage Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property Subject As String

HRESULT get_Subject(BSTR* pVal);HRESULT put_Subject(BSTR Val);

Parameters

  • pVal
    Returns the value of the Subject property as a reference to a BSTR.
  • Val
    Sets the value of the Subject property to the value of the BSTR.

Remarks

This property is also available as the urn:schemas:mailheader:subject field (subject Field) and as the urn:schemas:httpmail:subject field (subject Field).

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

The default value of Subject is an empty string.