Platform SDK: Exchange 2000 Server

HTMLBodyPart Property

[This is preliminary documentation and subject to change.]

The BodyPart object containing the HTML representation of the message.

[Visual Basic]
Property HTMLBodyPart as IBodyPart
read-only
[C++]
HRESULT get_HTMLBody(IBodyPart** pVal);
[IDL]
HRESULT [propget] HTMLBodyPart([out,retval] IBodyPart** pVal);

Remarks

The HTMLBodyPart property can be used to quickly access a reference to the BodyPart object that contains the HTML portion of the message (if any). That is, rather than having to enumeration the BodyPart hierarchy of the message seeking the object with Content-Type set to "text/html," you can use the HTMLBodyPart to return a reference immediately. A similar mechanism is available for the text/plain portion of the message (if any) using the IMessage.TextBody and IMessage.TextBodyPart properties.

The content of the BodyPart object referenced by HTMLBodyPart can be updated using the IMessage.HTMLBody property. The HTMLBody property can only be used to update the contents, not the mail headers themselves.

CDO will return an error if the body part does not exist.

See Also

IMessage.HTMLBody

IMessage.AutoGenerateTextBody

IMessage.TextBody

IMessage.TextBodyPart