Array.IList.Item[Int32] Array.IList.Item[Int32] Array.IList.Item[Int32] Property

定義

在指定的索引位置上取得或設定項目。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; }
 Property Item(index As Integer) As Object Implements IList.Item

參數

index
Int32 Int32 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.

適用於