Item Property (IMessages)
Topic Last Modified: 2006-06-13
Returns the specified Message object from the collection. This property is read-only.
Applies To
Type Library
Microsoft CDO for Exchange 2000 Library
DLL Implemented In
CDOEX.DLL
Syntax
Property Item(Index As Long) As CDO.Message
HRESULT get_Item(long Index, IMessage** ppMessage);
Parameters
- Index
Returns the value of the collection index as a reference to a long.
- ppMessage
Returned reference to an IMessage Interface.
Remarks
The Item property is intended for use with For loops, or to retrieve a specific Message object in the collection. If you want to enumerate the collection, you can use the _NewEnum property in the standard way. With Microsoft® Visual Basic®, use of this property is automatic within For Each In constructs.