語言

Array.IList.Item[Int32] 屬性

定義

取得或設定位於指定索引處的專案。

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 Item(index As Integer) As Object Implements IList.Item

參數

index
Int32

要取得或設定的元素的索引。

屬性值

位於指定索引的元素。

實作

例外狀況

index 小於零。

-或-

index 等於或大於 Count。

電流 Array 並非完全單一維度。

備註

此成員為明確介面成員實作。 它只能在實 Array 例投射到 IList 介面時使用。

適用於