Platform SDK: CDO for Windows 2000 |
The ContentClass property sets and retrieves the content class value of a body part.
[Visual Basic] Property ContentClass as String [C++] HRESULT get_ContentClass(BSTR* pVal); HRESULT put_ContentClass(BSTR Val); [IDL] HRESULT [propget] ContentClass([out,retval] BSTR* pVal); HRESULT [propput] ContentClass([in] BSTR Val);
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).
Dim iBp as CDO.IBodyPart ... ' get a bodypart containing an embedded message ' set it to oBp iBp.ContentClass = "urn:content-classes:message"