Platform SDK: CDO for Windows 2000

Item Property

The Item property returns the specified Message object from the collection.

[Visual Basic]
Property Item(Index as Long) as CDO.Message
read-only
[C++]
HRESULT get_Item(long Index, IMessage** ppMessage);
[IDL]
HRESULT [propget] Item(long Index, [out,retval] IMessage** ppMessage);

Parameters

Index
The ordinal index of the Message object to retrieve.

Remarks

The Item property is intended to be used with For loops, or to retrieve a specific Message object in the collection. If you want to enumerate the collection, you can use the IMessages._NewEnum property in the standard way. With Microsoft® Visual Basic®, this property is automatically used within For Each In constructs.