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 为只读。

适用于