Array.IList.Item[Int32] 属性

定义

获取或设置指定索引处的元素。Gets or sets the element at the specified index.

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; }
System.Collections.IList.Item
 Property Item(index As Integer) As Object Implements IList.Item

参数

index
Int32

要获取或设置的元素的索引。The index of the element to get or set.

属性值

指定索引处的元素。The element at the specified index.

实现

异常

index 小于零。index is less than zero.

- 或 --or- index 等于或大于 Countindex is equal to or greater than Count.

当前 Array 不是正好具有一个维度。The current Array does not have exactly one dimension.

注解

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 IList 接口时使用。It can be used only when the Array instance is cast to an IList interface.

适用于