Item Property

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

Returns the BodyPart object specified by the index. This property is read-only.

Applies To

IBodyParts Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

[Visual Basic]Property Item(Index As Long) As IBodyPart

[C++]HRESULT get_Item(long IndexIBodyPart** pVal);

Parameters

  • Index
    Returns the value of the collection index as a reference to a long.
  • pVal
    Returned reference to an IBodyPart Interface.

Remarks

Item is the default member on the interface.

Example

[Visual Basic] Sub ProcessBodyParts( iBp as CDO.IBodyPart ) Dim Count as Long

' Process body part code here

' Recursively descend body part hierarchy Dim iBp_local as CDO.IBodyPart Count = iBp.Count If Count > 1 Then Dim iBps as CDO.IBodyParts Set iBps = iBp.BodyParts For I = 1 to Count

  ' Item is the default.
  ' It is unnecessary to type ".Item". 
  Set iBp_local = iBps.Item(I)
  ProcessBodyPart iBp_local
Next I

End If End Sub

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.