Platform SDK: Exchange 2000 Server

Item Property

[This is preliminary documentation and subject to change.]

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);
Index
The ordinal index of the Message object to retrieve.

Remarks

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