ContentClass Property

ContentClass 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.

Sets and retrieves a body part's content class value.

Applies To

IBodyPart Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Property ContentClass As String

[C++]HRESULT get_ContentClass(BSTRpVal);
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 systemsComponent 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

[Visual Basic] Dim iBp as CDO.BodyPart ... ' get a bodypart containing an embedded message ' set it to oBp iBp.ContentClass = "urn:content-classes:message"

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.