다음을 통해 공유


Item Property (IMessages)

Topic Last Modified: 2006-06-13

Returns the specified Message object from the collection. This property is read-only.

Applies To

IMessages Interface

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.

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.