ContentClass Property
ContentClass Property
The ContentClass property sets and retrieves the content class value of a body part.
Syntax
Property ContentClass as String
HRESULT get_ContentClass(BSTR* pVal);
HRESULT put_ContentClass(BSTR Val);
Remarks
This property corresponds to the urn:schemas:mailheader:content-class field in the object's Fields collection.
Microsoft Collaboration Data Objects (CDO) for Microsoft® Windows® 2000 Component Object Model (COM) classes that provide IBodyPart implementations automatically generate the urn:content-classes:message value. This class header is present only in the message headers or in Multipurpose Internet Mail Extensions (MIME) entity headers for an embedded message (that is of message/rfc822 content type).
Example
Dim iBp as CDO.IBodyPart
... ' get a bodypart containing an embedded message
' set it to oBp
iBp.ContentClass = "urn:content-classes:message"