Share via


IList.Item Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets the element at the specified index.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Private Property Item ( _
    index As Integer _
) As Object Implements IList.Item
Object IList.this[
    int index
] { get; set; }
private:
virtual property Object^ Item[int index] {
    Object^ get (int index) sealed = IList::Item::get;
    void set (int index, Object^ value) sealed = IList::Item::set;
}
private abstract Item : 
        index:int -> Object with get, set
private override Item : 
        index:int -> Object with get, set
JScript does not support explicit interface implementations.

Parameters

Property Value

Type: System. . :: . .Object
The element at the specified index.

Implements

IList. . :: . .Item

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than ICollection..::..Count.

ArgumentException

The current Array does not have exactly one dimension.

Remarks

This member is an explicit interface member implementation. It can be used only when the Array instance is cast to an IList interface.

.NET Framework Security

See Also

Reference

Array Class

System Namespace