Share via


Count Property

Count 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 number of BodyPart objects in the collection. 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 Count As Long

[C++]HRESULT get_Count(longpVal);

Parameters

  • pVal
    Returns the value of the Count property as a reference to a long.

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 Set iBp_local = iBps(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.