ContentClass Property (IBodyPart)
Topic Last Modified: 2006-06-13
Sets and retrieves a body part's content class value.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
Property ContentClass As String
HRESULT get_ContentClass(BSTR* pVal);HRESULT put_ContentClass(BSTR Val);
Parameters
- pVal
Returns the value of the ContentClass property as a reference to a BSTR.
- Val
Sets the value of the ContentClass property to the value of the BSTR.
Remarks
This property corresponds to the urn:schemas:mailheader:content-class field in the object's Fields collection.
Collaboration Data Objects (CDO) for Microsoft® Windows® server operating systems 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 has the Content-Type "message/rfc822.")
Example
Dim iBp as CDO.BodyPart
... ' get a bodypart containing an embedded message
' set it to oBp
iBp.ContentClass = "urn:content-classes:message"