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 物件為唯讀。

適用於