Share via


Collection.IListItem Property

Gets or sets the element at the specified index. Implements the IList interface.

Namespace: Microsoft.VisualBasic

Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

Private Property IListItem( _
   ByVal index As Integer _
) As Object Implements IList.Item
private object this[int index] { get; set; }

Parameters

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

Return Value

The element at the specified index.

Exceptions

Exception Description

ArgumentOutOfRangeException

index is not a valid index in the Collection object.

NotSupportedException

The property is set and the Collection object is read-only.

Remarks

This property is similar to the Microsoft.VisualBasic.Collection.Item(System.Int32) property.

Version Information

.NET Framework

Supported in: 2.0, 1.1, 1.0

See Also

Reference

Collection
IList
System.Collections.IList.Item(System.Int32)
Microsoft.VisualBasic.Collection.Item(System.Int32)