Collection.IList.Item[Int32] Свойство

Определение

Возвращает или задает элемент по указанному индексу.

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int Index); void set(int Index, System::Object ^ value); };
property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int Index] { get; set; }
object System.Collections.IList.Item[int index] { get; set; }
member this.System.Collections.IList.Item(int) : obj with get, set
 Property IListItem(Index As Integer) As Object Implements IList.Item
 Property IListItem(index As Integer) As Object Implements IList.Item

Параметры

indexIndex
Int32

Отсчитываемый от нуля индекс элемента, который требуется возвратить или задать.

Значение свойства

Элемент, расположенный по указанному индексу.

Исключения

Значение параметра index не является допустимым индексом для объекта Collection.

Свойство задано, и объект Collection доступен только для чтения.

Применяется к