Partager via


HTMLBodyPart Property

HTMLBodyPart Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

The BodyPart object containing the HTML representation of the message. This property is read-only.

Applies To

IMessage Interface

IWorkflowMessage Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Property HTMLBodyPart As IBodyPart

[C++]HRESULT get_HTMLBodyPart(IBodyPart** pVal);

Parameters

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 enumerate the BodyPart hierarchy of the message seeking the object with Content-Type set to "text/html," you can use 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 returns an error if the body part does not exist.

See Also

HTMLBody Property

AutoGenerateTextBody Property

TextBody Property

TextBodyPart Property

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.