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)

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;
}

Parameters

index
Type: System..::..Int32
The index of the element to get or set.

Property Value

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

Implements

IList..::..Item

ExceptionCondition
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.

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

Show: