語言

ReferenceList.IList.Item[Int32] 屬性

定義

關於此成員的描述,請參見 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 在 中 不是有效的索引 IList。

備註

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

適用於