PowerTCP Mail for .NET
Item(Int32) Property
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > ImapMessageCollection Class > Item Property : Item(Int32) Property




index
The zero-based index of the element to get or set.
Gets or sets the element at the specified index.

Syntax

Visual Basic (Declaration) 
Public Overloads Property Item( _
   ByVal index As Integer _
) As ImapMessage
Visual Basic (Usage)Copy Code
Dim instance As ImapMessageCollection
Dim index As Integer
Dim value As ImapMessage
 
instance.Item(index) = value
 
value = instance.Item(index)
C# 
public ImapMessage Item( 
   int index
) {get; set;}
Managed Extensions for C++ 
public: __property ImapMessage* get_Item( 
   int index
);
public: __property void set_Item( 
   int index,
   ImapMessage* value
);
C++/CLI 
public:
property ImapMessage^ Item {
   ImapMessage^ get(intindex);
   void set (intindexImapMessage^value);
}

Parameters

index
The zero-based index of the element to get or set.

Property Value

The element at the specified index.

Exceptions

ExceptionDescription
System.ArgumentOutOfRangeExceptionIndex is less than zero. -or-Index is equal to or greater than Count.

Remarks

This property provides the ability to access a specific element in the collection by using the following syntax:

myCollection[Index]

Note, intellisense may not work on members of objects referenced by using this indexer. If you would like intellisense to work, get the object referenced by the indexer into it's own variable.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.