Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Sets and retrieves a body part's content class value.
[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.
CDO for Microsoft® Windows® 2000 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 MIME entity headers for an embedded message (that has the Content-Type "message/rfc822."
Dim iBp as CDO.BodyPart ... ' get a bodypart containing an embedded message ' set it to oBp iBp.ContentClass = "urn:content-classes:message"