Partager via


_NewEnum Property (IBodyParts)

Topic Last Modified: 2006-06-13

Returns an IEnumVARIANT interface on an enumeration object for the collection. This property is hidden from Microsoft® Visual Basic® and Visual Basic Scripting Edition (VBScript).

Applies To

IBodyParts Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

HRESULT get__NewEnum(IUnknown** pVal);

Parameters

  • pVal
    Returned reference to the objects IUnknown Interface.

Remarks

This property is hidden within Visual Basic and VBScript. It is a standard property used to support enumerating collections, such as the

For Each Obj in Collection
  '
Next Obj

syntax in Visual Basic.

Example

Sub EnumBodyPartsAndXXX( iBp as CDO.IBodyPart )
  Dim iBp_local as IBodyPart
  Dim iBps as IBodyParts
  Set iBps = iBp.BodyParts
  For Each iBp_local in iBps

  ' Code here.
  Next iBp
End Sub